llines

0th

Percentile

Lattice Replacements of base graphics functions

These functions are intended to replace some commonly used base R graphics functions in panel functions.

Keywords
dplot
Usage
larrows(x0, y0, x1, y1, proportion, ...)
llines(x, y, ...)
lplot.xy(xy, ...)
lpoints(x, ...)
lsegments(x0, y0, x1, y1, ...)
lsegments(x1, y1, x2, y2, ...)
ltext(x, ...)
panel.arrows(...)
panel.lines(...)
panel.points(...)
panel.segments(...)
panel.text(...)
Arguments
x, y, x0, y0, x1, y1, x2, y2, xy
locations. x2, y2 present for S compatibility
proportion
The proportion of the arrow edges compared to the whole line. This is different from arrows
...
other arguments, including ones to control graphical parameters like color, line type, etc. For devices that support alpha-transparency, a numeric argument alpha between 0 and 1 can be supplied. Be careful with this, since for dev
Details

These functions are meant to be grid replacements of the corresponding base R graphics functions, to allow existing Trellis code to be used with minimal modification. The functions panel.* are essentally identical to the l* versions, are recommended for use in new code (as opposed to ported code) as they have more readable names.

See the documentation of the base functions for usage. Not all arguments are always supported. All these correspond to the default methods only. For ltext, only values 0, .5 and 1 for adj have any effect.

Note

There's a new type="H" option wherever appropriate, which is similar to type="h", but with horizontal lines.

synopsis

larrows(x0, y0, x1, y1, x2, y2, angle = 30, code = 2, length = NULL, proportion = 0.05, ...) llines(x, y = NULL, type = "l", col = plot.line$col, alpha = plot.line$alpha, lty = plot.line$lty, lwd = plot.line$lwd, ...) lplot.xy(xy, type, pch = 1, lty = 1, col = 1, cex = 1, lwd = 1, font = 1, fontfamily = NULL, fontface = NULL, col.line = col, alpha = 0, ...) lpoints(x, y = NULL, type = "p", col = plot.symbol$col, pch = plot.symbol$pch, alpha = plot.symbol$alpha, font = plot.symbol$font, fontfamily = plot.symbol$fontfamily, fontface = plot.symbol$fontface, cex = plot.symbol$cex, ...) lsegments(x0, y0, x1, y1, x2, y2, col = add.line$col, alpha = add.line$alpha, lty = add.line$lty, lwd = add.line$lwd, ...) ltext(x, y = NULL, labels = seq(along = x), col = add.text$col, alpha = add.text$alpha, cex = add.text$cex, srt = 0, font, fontfamily = add.text$fontfamily, fontface = add.text$fontface, adj = c(0.5, 0.5), pos = NULL, offset = 0.5, ...)

See Also

points, lines, text, segments, Lattice

Aliases
  • larrows
  • llines
  • lplot.xy
  • lpoints
  • lsegments
  • ltext
  • panel.arrows
  • panel.lines
  • panel.points
  • panel.segments
  • panel.text
Documentation reproduced from package lattice, version 0.10-10, License: GPL version 2 or later

Community examples

Looks like there are no examples yet.