[R] legend outside axes of image or other plot

Thomas Lumley tlumley at u.washington.edu
Wed Sep 11 01:25:01 CEST 2002


On Tue, 10 Sep 2002, Richard Condit wrote:

> I have tried and tried unsuccessfully to place a legend outside the plot
> frame of a graph. This would allow me to draw a legend for an image() plot.
> But any legend I add is cut off outside the axes.
>
> Is there a way of doing this? Thanks for any advice on how to make this
> work (I'm using R1.5.1 with Windows 2000).

Look at whether filled.contour() does what you want.  If not, you can use
the same method that it uses: call layout() to create two subscreens, one
for the legend and one for the plot

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list