one legend for multiple plots

34 views
Skip to first unread message

IRich

unread,
Jun 3, 2014, 8:51:37 AM6/3/14
to ggp...@googlegroups.com
Hello,
does anybody knows a good solution, when having multiple plots and one shared legend?

I'm looking for examples plots on where to position the legend and a clever way of scripting it.

the way I do it now is using multiplot, having the legend on the right side of the actual plot. 

pdf("plot.pdf", width = 12, height = 24)
multiplot(a,b,c,d,cols=1)
dev.off

and remove three of the legends in Photoshop. There is probably a better way.

thanks!
/Inga

John Kane

unread,
Jun 3, 2014, 10:12:30 AM6/3/14
to ggp...@googlegroups.com
Hi  Rich,

This stackoverflow question and answer may be what you are looking for.

John Kane

unread,
Jun 3, 2014, 10:28:11 AM6/3/14
to ggp...@googlegroups.com


On Tuesday, June 3, 2014 8:51:37 AM UTC-4, IRich wrote:
Reply all
Reply to author
Forward
0 new messages