[R] Text over the plot and the margins

John Kane jrkrideau at yahoo.ca
Sun Dec 30 22:37:33 CET 2007


Hi Miguel,

Some sample code would help but I think xpd in ?par
may be what you're looking for however it probably
would be easier/better to set  the xlim values to give
more space on the right hand side of the graph or just
modify the text( at=) value to keep the numbers inside
the plot area.


--- Miguel Tremblay <miguel.tremblay at ptaff.ca> wrote:

> Hi,
> 
> I am having problem to display text that goes start
> inside the 
> plot but should go over the margins of the plot.
> 
> You can have an example of what I mean by looking at
> the graphs on this 
> page:
>
http://ptaff.ca/soleil/?l1pays=Canada&l1etat=Qu%C3%A9bec&l1ville=Montr%C3%A9al&year=2007&month=12&day=30&l1cityname=Montr%C3%A9al%2C+Qu%C3%A9bec%2C+Canada&l1ltd=45&l1ltm=30&l1lts=0&l1ltx=N&l1lgd=73&l1lgm=34&l1lgs=47&l1lgx=W&l1tz=-5.0&l1dst=US&l2ltx=N&l2lgx=E&l2tz=0&lang=en_CA&go=Voir+le+graphe%21
> or
> http://tinyurl.com/3ykaha
> 
> The sunset and sunlight values near the bullets
> should be displayed but 
> they are truncated in the middle.
> 
> For what I understand, the "text" method is used to
> write inside the plot 
> area while the "mtext" is used to write in the
> margins, i.e. outsite the 
> plot.
> 
> Is there a way to start writing in the plot area and
> to indicate that if 
> the strings goes outside the area, it can continue
> to write there?
> 
> Thanks,
> 
> Miguel Tremblay
> http://ptaff.ca/miguel/
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.
>



More information about the R-help mailing list