text: Add styled text to a plot

Description Usage Arguments Examples

View source: R/RcssWrappers.R

Description

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

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
# 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"))

Rcssplot documentation built on Jan. 8, 2020, 5:11 p.m.