text {Rcssplot}R Documentation

Add styled text to a plot

Description

This is a wrapper for R's text function. See R's documentation for graphics::text for further details.

Usage

text(
  x,
  y = NULL,
  labels = seq_along(x),
  Rcss = "default",
  Rcssclass = NULL,
  ...
)

Arguments

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

Examples


# 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"))


[Package Rcssplot version 1.0.0 Index]