Skip to content
Prev 319334 / 398506 Next

Fine control of plot

Okay, so what you really want to do is be able to set a wide right
margin and draw some segments there? Using layout() is not the best
way to go about this: as you've discovered, you can't control the area
assigned.

You can "cheat" with layout(), as in:
layout(matrix(c(1,1,1,2), nrow=1))

but the better way is to see xpd within ?par as described here:
https://stat.ethz.ch/pipermail/r-help/2009-July/206311.html

along with par()$mai to set the margins appropriately.

Sarah

On Tue, Mar 12, 2013 at 3:50 PM, philippe massicotte
<pmassicotte at hotmail.com> wrote: