Learn R Programming

lattice (version 0.11-8)

llines: Lattice Replacements of base graphics functions

Description

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

Usage

larrows(x0, y0, x1, y1, length = 0.25, unit = "inches", ...)
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

synopsis

larrows(x0 = NULL, y0 = NULL, x1, y1, x2 = NULL, y2 = NULL, angle = 30, code = 2, length = 0.25, unit = "inches", col = add.line$col, alpha = add.line$alpha, lty = add.line$lty, lwd = add.line$lwd, fill = NULL, ...) 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, ...)

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.

See Also

points, lines, text, segments, arrows, Lattice