Skip to content
Prev 168492 / 398502 Next

help with plot layout

We don't have your data, so we cannot reproduce what you are doing and the plot was stripped off before we saw it (only certain types of attachments are allowed, and some e-mail programs don't give the correct information about attachments so even those types can be stripped if it is not clear what they are).

Here are some possible hints that may help (if I have guessed correctly about what you are trying to do).

Read the help page for par, looking at the information on margins and outer margins, this can be used to give you more room for your titles (also the xpd argument if you are placing things outside the plot area).  Also look at the various cex arguments for controlling sizes.

Try using mtext instead of text to manually add titles or other text in the margins.

Sometimes using the outer margins works better than using the regular margins (sometimes not).

The text function uses the user coordinates of the current plot, the functions grconvertX and grconvertY can be used to convert between the different coordinate systems.

Hope this helps,