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

139,487

Version

0.23-1

License

GPL (>= 2)

Maintainer

Deepayan Sarkar

Last Published

August 12th, 2026

Functions in lattice (0.23-1)

H environmental

Atmospheric environmental conditions in New York City
D level.colors

A function to compute false colors representing a numeric or categorical variable
H ethanol

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

Low-level Options Controlling Behaviour of Lattice
B.06 levelplot

Level plots and contour plots
I lset

Interface to modify Trellis Settings - Defunct
G latticeParseFormula

Parse Trellis formula
B.03 histogram

Histograms and Kernel Density Plots
F.2 llines

Replacements of traditional graphics functions
E interaction

Functions to Interact with Lattice Plots
F.1 panel.densityplot

Default Panel Function for densityplot
D make.groups

Grouped data from multiple vectors
G packet.panel.default

Associating Packets with Panels
F.1 panel.dotplot

Default Panel Function for dotplot
G panel.axis

Panel Function for Drawing Axis Ticks and Labels
H melanoma

Melanoma skin cancer incidence
B.11 oneway

Fit One-way Model
F.1 panel.barchart

Default Panel Function for barchart
F.1 panel.bwplot

Default Panel Function for bwplot
F.1 panel.parallel

Default Panel Function for parallelplot
F.1 panel.cloud

Default Panel Function for cloud
F.1 panel.levelplot

Panel Functions for levelplot and contourplot
G panel.number

Accessing Auxiliary Information During Plotting
F.2 panel.loess

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

Useful panel function with qqmath
F.2 panel.functions

Useful Panel Function Components
F.2 panel.smoothScatter

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

Default Panel Function for histogram
F.1 panel.pairs

Default Superpanel Function for splom
F.3 prepanel.functions

Useful Prepanel Function for Lattice
C.05 print.trellis

Plot and Summarize Trellis Objects
F.3 prepanel.default

Default Prepanel Functions
B.05 qq

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

Default Panel Function for qqmath
B.04 qqmath

Q-Q Plot with Theoretical Distribution
F.1 panel.xyplot

Default Panel Function for xyplot
F.2 panel.spline

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

Default Panel Function for stripplot
B.10 rfs

Residual and Fit Spread Plots
F.2 panel.superpose

Panel Function for Display Marked by groups
H singer

Heights of New York Choral Society singers
F.2 panel.violin

Panel Function to create Violin Plots
B.08 splom

Scatter Plot Matrices
C.07 shingles

shingles
B.09 tmd

Tukey Mean-Difference Plot
D simpleKey

Function to generate a simple key
C.02a standard.theme

Built-in Graphical Themes
D strip.default

Default Trellis Strip Function
C.03 simpleTheme

Function to generate a simple theme
C.01 trellis.device

Initializing Trellis Displays
G utilities.3d

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

Graphical Parameters for Trellis Displays
B.01 xyplot.ts

Time series plotting methods
C.06 update.trellis

Retrieve and Update Trellis Object
D trellis.object

A Trellis Plot Object
B.00 xyplot

Common Bivariate Trellis Plots