[R] Add comments on plot window

Gabor Grothendieck ggrothendieck at gmail.com
Tue Jul 1 14:39:15 CEST 2008


Try this.  mar is used to widen the right margin and
xpd allows display outside of the plot. See ?par and
?legend

op <- par(mar = c(5, 4, 4, 10) + 0.1, xpd = TRUE)
plot(1:10)
legend("topright", inset = c(-.3, 0), "abc\ndef", box.lty = 0)
par(op)


On Mon, Jun 30, 2008 at 7:43 AM, mysimbaa <adel.tekari at sisltd.ch> wrote:
>
> Dear R users,
>
> Is it possible to add comments in a plot window?
> I have 3 plots -> this plots have to be commented on same window
> Is possible to do the following :
> http://www.nabble.com/file/p18193822/plot%2526comments.JPG
> plot%26comments.JPG
>
> I don't know how to do it. Maybe plot.window or something like that.
>
> Any suggestions??
> Thanks in advance,
> Adel.
> --
> View this message in context: http://www.nabble.com/Add-comments-on-plot-window-tp18193822p18193822.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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