text | R Documentation |
This is a wrapper for R's text function. See R's documentation for graphics::text for further details.
text(
x,
y = NULL,
labels = seq_along(x),
Rcss = "default",
Rcssclass = NULL,
...
)
x , y |
coordinates where to write labels |
labels |
characters to print on the plot |
Rcss |
style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle() |
Rcssclass |
character, style class |
... |
Further parameters, see documentation of graphics::text |
# add text to an existing plot
plot(c(0, 1), c(0, 1), type="n")
text(0.1, 0.1, "A")
text(c(0.2, 0.7), c(0.8, 0.6), c("B", "C"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.