[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:
> 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