Skip to content

Plotting legend outside of plot region

1 message · Aleksey Naumov

#
Dear R users,

I am wondering how I could put a legend outside of the plot region of
the corresponding
plot (so that it does not interfere with data points). It seems legends
are positioned in user
coordinates which are set up by the last high-level plot command. Not
only is it inconvenient,
but also a legend can't be plotted outside of plot region...

Do I have to set up a dedicated figure for a legend in this case (and
partition page with layout())
or is there an easier way?

Many thanks,

Aleksey

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._