Skip to content
Prev 207056 / 398502 Next

legend in multiple plot

On 01/21/2010 03:53 AM, Lars Skj?rven wrote:
Hi Lars,
I would try using layout for something like this:


x11(width=5,height=10)
layout(matrix(1:6,ncol=1),heights=c(rep(1,5),0.5))
plot(1:10)
plot(1:10)
plot(1:10)
plot(1:10)
plot(1:10)
oldmar<-par(mar=c(1,1,1,1))
plot.new()
legend(0.45,1,c("one","two","three"),pch=1:3)
par(oldmar)

Jim