Hi, I am plotting 5 charts using p <- par(mfrow = c(3, 2), how can I place my legend in the last region ? I don't wan to put it into the margin. [[alternative HTML version deleted]]
Ng Stanley wrote:> Hi, > > I am plotting 5 charts using p <- par(mfrow = c(3, 2), how can I place my > legend in the last region ? I don't wan to put it into the margin.You should be able to do a blank plot, then plot the legend. For example, > par(mfrow=c(3,2)) > for (i in 1:5) plot(1) > plot(1, axes=F, xlab="", ylab="", type="n") > legend("center", pch=1, legend="points") Duncan Murdoch
Reasonably Related Threads
- Stacked area chart and legends
- Automatic placement of Legends
- How to create a legend without plot, and to use scientific notation for axes label ?
- problem getting multiple densityplots on one page
- Adding a legend to R graph device with several plots (no to individual plots!)