[R] draw text outside plot boundaries

Peter Ehlers ehlers at ucalgary.ca
Tue Jun 7 00:09:29 CEST 2011


On 2011-06-06 08:44, Erik Aronesty wrote:
> i'd like to use the text() function to annotate some points, but the
> labels get cropped, if the point is on the right
>
> is there a way to prevent this, and tell the text() function to allow
> writing outside the boundaries of the current plot?

Go to ?par and check out the 'xpd' parameter.

Peter Ehlers

>
> i don't mind if it looks "messy" and  steps on the margin a bit.
>
> - erik
>
> ______________________________________________
> 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