[R] how to draw a legend outside of the plot

Kathryn Lord kathryn.lord2000 at gmail.com
Thu Feb 5 08:42:48 CET 2015


Dear R users,

I have three plots, so I tried, for exmple,

par(mfrow=c(2,2))

y1 <- rnorm(100)
y2 <- rnorm(100)
y3<- rnorm(100)

plot(y1);plot(y2);plot(y3)

Here, I'd like to put a legend on the bottom right hand side (empty space).

is it possible?

Thanks for helping,

Kathryn Lord

	[[alternative HTML version deleted]]



More information about the R-help mailing list