Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

writelabel

adds a label next to a plot


Description

adds one-character label on left-upper margin, next to a plot

Usage

writelabel(text = NULL, nr = 1, at = -0.1, line = 1, cex = 1.5, ...)

Arguments

text

text to write.

nr

integer; if text = NULL: nr is converted to uppercase letter.

at

relative distance of label position, from left margin of plot region.

line

line above the plot region of label position.

cex

relative size of label.

...

arguments passed to R-function mtext.

Author(s)

Karline Soetaert <karline.soetaert@nioz.nl>

Examples

plot(runif(2), main = "writelabel")
writelabel("A")
writelabel("B", at = 0)
writelabel("C", at = 1)

shape

Functions for Plotting Graphical Shapes, Colors

v1.4.5
GPL (>= 3)
Authors
Karline Soetaert <karline.soetaert@nioz.nl>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.