Type "?par" at the command line to bring up the help page, then scroll down and 
read the sections on xpd and usr.

________________________________

From: Edwin Sendjaja [mailto:[EMAIL PROTECTED]
Sent: Fri 4/11/2008 9:56 PM
To: Greg Snow; r-help@r-project.org
Subject: Re: [R] Legend position outside



Hello Gred,

I try to read R-Reference, but I cant understand it.

What does par (xpd=NA)? and par('usr')) mean? Thank you.






Kind regards,

Edwin



Am Freitag, 11. April 2008 19:19:24 schrieben Sie:
> Yes, here is one way:
> > plot(1:10, pch=1:2)
> > par(xpd=NA)
> > tmp.u <- par('usr')
> > legend(tmp.u[1], tmp.u[4], xjust=0, yjust=0, c('a','b'), pch=1:2)
>
> You will probably want to increase the margins for a real case.  See
> ?par and the 'xpd' entry for details on the clipping and ?legend for
> more details on creating the legend.
>
> Hope this helps,





        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to