O'Reilly logo

R in a Nutshell, 2nd Edition by Joseph Adler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

lattice

Trellis graphics is a framework for data visualization developed at Bell Labs by Richard Becker, William Cleveland, et al., extending ideas presented in Bill Cleveland’s 1993 book Visualizing Data.

lattice is best thought of as an implementation of Trellis graphics for R. It is built upon the grid graphics engine and requires the grid add-on package. It is not (readily) compatible with traditional R graphics tools. The public interface is based on the implementation in S-PLUS but features several extensions, in addition to incompatibilities introduced through the use of grid. To the extent possible, care has been taken to ensure that existing Trellis code written for S-PLUS works unchanged (or with minimal change) in lattice. If you are having problems porting S-PLUS code, read the entry for panel in the documentation for xyplot. Most high-level Trellis functions in S-PLUS are implemented, with the exception of piechart.

Functions

FunctionDescription
RowsConvenience function to extract a subset of a list. Usually used in creating keys.
as.shingle, as.factorOrShingleFunctions to handle shingles.
axis.defaultDefault function for drawing axes in lattice plots.
bankingCalculates banking slope.
barchartDraws bar charts.
bwplotDraws box plots.
canonical.themeInitialization of a display device with appropriate graphical parameters.
cloudGeneric function to draw 3D scatter plots and surfaces. The "formula" methods do most of the actual work.
col.whitebgInitialization of a display device with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required