Jim, Thanks for the tip, this did the trick. I knew it would be simple,
too much documentation, too little time!
-Original Message-
From: Jim Lemon [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 20, 2008 5:20 AM
To: Beck, Kenneth (STP)
Cc: r-help@r-project.org
Subject: Re: [R] Legend
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
Here is a better example. I am also trying to put gaps between the bars
on the graphs, and this work-around is the only way I can make it work
satisfactorily. Any suggestions about that?
windows();
nf <- layout(matrix(c(1,2,5,0,3,4),3,2,byrow=TRUE), c(2.2,2.2),
c(2.2,1,2.2), TRUE)
layout.show(nf);
3 matches
Mail list logo