[R] Legend Clipping

Jim Lemon jim at bitwrit.com.au
Sun Apr 20 12:20:01 CEST 2008


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



More information about the R-help mailing list