Re: [R] Legend Clipping

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Sun, 20 Apr 2008 20:20:01 +1000

Beck, Kenneth (STP) wrote:
 > ...
> legend(0.5,0.5, legend = c("CPX","Home"), bty="n",
> fill=c("blue","red"),lwd=1, cex=1, xjust=0.5, yjust=0.4);
>

Hi Kenneth,
Try this:

par(xpd=TRUE)
legend(0.5,0.5, legend = c("CPX","Home"), bty="n", fill=c("blue","red"),lwd=1, cex=1, xjust=0.5, yjust=0.4); par(xps=FALSE)

Jim



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. Received on Sun 20 Apr 2008 - 10:32:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 20 Apr 2008 - 18:30:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive