Learn R Programming

Lattice

Lattice is a powerful and elegant high-level data visualization system for R, inspired by Trellis graphics. It is designed with an emphasis on multivariate data, and in particular allows easy conditioning to produce "small multiple" plots. Lattice is sufficient for typical graphics needs, and is also flexible enough to handle most nonstandard requirements.

Copy Link

Version

Install

install.packages('lattice')

Monthly Downloads

75,241

Version

0.22-9

License

GPL (>= 2)

Maintainer

Deepayan Sarkar

Last Published

February 9th, 2026

Functions in lattice (0.22-9)

B.03 histogram

Histograms and Kernel Density Plots
H ethanol

Engine exhaust fumes from burning ethanol
C.04 lattice.options

Low-level Options Controlling Behaviour of Lattice
D level.colors

A function to compute false colors representing a numeric or categorical variable
G latticeParseFormula

Parse Trellis formula
H environmental

Atmospheric environmental conditions in New York City
E interaction

Functions to Interact with Lattice Plots
B.06 levelplot

Level plots and contour plots
F.2 llines

Replacements of traditional graphics functions
I lset

Interface to modify Trellis Settings - Defunct
B.11 oneway

Fit One-way Model
F.1 panel.dotplot

Default Panel Function for dotplot
D make.groups

Grouped data from multiple vectors
F.1 panel.barchart

Default Panel Function for barchart
G panel.axis

Panel Function for Drawing Axis Ticks and Labels
G packet.panel.default

Associating Packets with Panels
H melanoma

Melanoma skin cancer incidence
F.1 panel.densityplot

Default Panel Function for densityplot
F.1 panel.bwplot

Default Panel Function for bwplot
F.1 panel.cloud

Default Panel Function for cloud
F.2 panel.qqmathline

Useful panel function with qqmath
G panel.number

Accessing Auxiliary Information During Plotting
F.1 panel.pairs

Default Superpanel Function for splom
F.1 panel.parallel

Default Panel Function for parallel
F.2 panel.functions

Useful Panel Function Components
F.1 panel.levelplot

Panel Functions for levelplot and contourplot
F.2 panel.loess

Panel Function to Add a LOESS Smooth
F.2 panel.smoothScatter

Lattice panel function analogous to smoothScatter
F.1 panel.qqmath

Default Panel Function for qqmath
F.3 prepanel.functions

Useful Prepanel Function for Lattice
F.3 prepanel.default

Default Prepanel Functions
C.05 print.trellis

Plot and Summarize Trellis Objects
F.1 panel.xyplot

Default Panel Function for xyplot
F.2 panel.superpose

Panel Function for Display Marked by groups
F.2 panel.violin

Panel Function to create Violin Plots
F.2 panel.spline

Panel Function to Add a Spline Smooth
F.1 panel.stripplot

Default Panel Function for stripplot
B.04 qqmath

Q-Q Plot with Theoretical Distribution
B.05 qq

Quantile-Quantile Plots of Two Samples
F.1 panel.histogram

Default Panel Function for histogram
B.08 splom

Scatter Plot Matrices
H singer

Heights of New York Choral Society singers
B.10 rfs

Residual and Fit Spread Plots
C.02a standard.theme

Built-in Graphical Themes
D strip.default

Default Trellis Strip Function
C.01 trellis.device

Initializing Trellis Displays
B.09 tmd

Tukey Mean-Difference Plot
C.07 shingles

shingles
C.03 simpleTheme

Function to generate a simple theme
D trellis.object

A Trellis Plot Object
D simpleKey

Function to generate a simple key
C.06 update.trellis

Retrieve and Update Trellis Object
G utilities.3d

Utility functions for 3-D plots
C.02b trellis.par.get

Graphical Parameters for Trellis Displays
B.00 xyplot

Common Bivariate Trellis Plots
B.01 xyplot.ts

Time series plotting methods
H USMortality

Mortality Rates in US by Cause and Gender
B.02 barchart.table

table methods for barchart and dotplot
G Rows

Extract rows from a list
G banking

Banking
D draw.key

Produce a Legend or Key
D draw.colorkey

Produce a colorkey typically for levelplot
A.01 Lattice

Lattice Graphics
B.07 cloud

3d Scatter Plot and Wireframe Surface Plot
G axis.default

Default axis annotation utilities
H barley

Yield data from a Minnesota barley trial