[R] legend() outside plotting region

Jim Lemon bitwrit at ozemail.com.au
Tue Aug 27 12:58:35 CEST 2002


Ko-Kang Kevin Wang wrote:
> Hi,
>
> Is it possible to put the legend outside the plotting region?
>
After you have plotted the data, use

par(xpd=T)

and then legend() with x,y values where you want it.

>  ...As a side track, is
> there a better way to represent this, as 24 lines is very difficult to
> distinguish anyhow.  This data frame, by the way, is a time series.
>
24 lines would probably confuse the average spider. What do you want to 
illustrate? If it is a comparison between one group of lines and another, 
you might be able to plot two polygons showing the region that each group 
occupies, or something like that.

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