[R] Legend problems

Ross Darnell R.E.Darnell at ncl.ac.uk
Thu May 24 12:00:20 CEST 2001

I have not been able to solve a problem trying to put a legend onto an

After generating the image I try to add a legend with


If I place the legend on top of the image the text and fill boxes are
shown, but unfortunately over the top of the image.

If I try to locate the legend somewhere else, in the top margin for
instance, the text (the legend) is displayed but not the fill boxes.

If I include the par option xpd, say


nothing changes. I thought this would stop this would allow the legend
to be printed inside the device but it doesn't seem to matter what xpd
value I use, the fill boxes do not appear anywhere except over the

There must be another option that controls this. Can anyone help?

Ross Darnell

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