Skip to Content
R in a Nutshell
book

R in a Nutshell

by Joseph Adler
January 2010
Beginner content levelBeginner
634 pages
19h 50m
English
O'Reilly Media, Inc.
Content preview from R in a Nutshell

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R in a Nutshell, 2nd Edition

R in a Nutshell, 2nd Edition

Joseph Adler
The Big R-Book

The Big R-Book

Philippe J. S. De Brouwer
R Packages

R Packages

Hadley Wickham

Publisher Resources

ISBN: 9781449377502Supplemental ContentErrata Page