panel.usertext {playwith}R Documentation

Annotations with custom style

Description

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

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, ...)

Arguments

x, y text or point locations.
labels, col, alpha, cex, srt, lineheight, font, fontfamily, fontface, adj, pos, offset, pch, fill, ...

{ see the usual lattice functions in llines. }

Details

The settings for panel.usertext are taken from trellis.par.get("user.text") by default, but falls back 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") by default, but falls back to a hard-coded default if undefined.

Both these functions are used in playwith.

Author(s)

Felix Andrews felix@nfrac.org

See Also

llines, trellis.par.get

Examples

xyplot(1:10 ~ 1:10, panel = function(...) {
    panel.brushpoints(...)
    panel.usertext(..., pos = 1)
})

[Package playwith version 0.9-21 Index]