[R] Multiple plots with one legend
jim holtman
jholtman at gmail.com
Sun Mar 27 03:55:54 CEST 2011
You can use 'layout' to create 4 plot areas: the 3 plot you currently
have, and one for the legend. Try this to see what happens:
> x <- cbind(rbind(1,2,3), 4)
> layout(x, width = c(5,1))
> layout.show(4)
On Sat, Mar 26, 2011 at 7:06 PM, mavkoup <mavkoup at hotmail.com> wrote:
> Hi,
>
> I've created 3 plots one under the other, and want to include a legend on
> the right that spans the height of all 3 plots.
>
> How can I do this?
>
> Thanks!
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Multiple-plots-with-one-legend-tp3408537p3408537.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
More information about the R-help
mailing list