panel.usertext

0th

Percentile

Annotations with custom style

These are versions of panel.text and panel.points with different (customisable) style settings.

Keywords
aplot
Usage
panel.usertext(x, y = NULL, labels = seq_along(x), col, alpha, cex, srt = 0, lineheight, font, fontfamily, fontface, adj = c(0.5, 0.5), pos = NULL, offset = 0.5, ...)
panel.brushpoints(x, y = NULL, col, pch, alpha, fill, cex, ...)
panel.brushlines(x, y = NULL, type, col, alpha, lty, lwd, ...)
Arguments
x, y
text or point locations.
labels, col, alpha, cex, srt, lineheight
see the usual lattice functions in llines.
font, fontfamily, fontface, adj, pos, offset
as above.
pch, fill, type, lty, lwd, ...
as above.
Details

The settings for panel.usertext are taken from trellis.par.get("user.text"), but default to trellis.par.get("add.text") if undefined. "user.text" is preferred to "add.text" for annotations because the latter also applies to strip text and key text.

The settings for panel.brushpoints are taken from trellis.par.get("brush.symbol"), but default to hard-coded settings if undefined.

The settings for panel.brushlines are taken from trellis.par.get("brush.line"), but default to hard-coded settings if undefined.

These functions are used in playwith.

See Also

llines, trellis.par.get

Aliases
  • panel.usertext
  • panel.brushpoints
  • panel.brushlines
Examples
xyplot(1:10 ~ 1:10, panel = function(...) {
    panel.brushpoints(...)
    panel.usertext(..., pos = 1)
})
Documentation reproduced from package playwith, version 0.9-54, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.