A simple wrapper for mtext
, making sure that the character size is adjusted to be identical to the character size used on the ordinary axes, and respecting the setting for mgp
in par
. This is especially handy when plotting multiple panels (via the use of par(mfrow=...)
), because axis labels are automatically adjusted in that case (see entry for mfrow
in par
).
1 | axis_title(text, side, ...)
|
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.