ctext: Write styled text into a plot corner

Description Usage Arguments Examples

View source: R/RcssMisc.R

Description

This can be suitable for placing a label in a multi-panel figure. Note the automatic placement does not work when a plot is generated with logarithmic scales.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ctext(
  label,
  x = NULL,
  y = NULL,
  adj = NULL,
  cex = NULL,
  Rcss = "default",
  Rcssclass = NULL,
  ...
)

Arguments

label

character, text for corner label

x, y

numeric, positions for manual placement

adj

numeric of length 2, argument adj for text

cex

numeric, argument cex for text

Rcss

style sheet object

Rcssclass

character, style class

...

additional argument, passed to text()

Examples

1
2
plot(1:10, 1:10)
ctext("A")

tkonopka/Rcssplot documentation built on Jan. 21, 2021, 11:36 p.m.