Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

themes

Lattice Theme


Description

A theme for use with lattice graphics.

Usage

theme.mosaic(bw = FALSE, lty = if (bw) 1:7 else 1, lwd = 2, ...)

col.mosaic(bw = FALSE, lty = if (bw) 1:7 else 1, lwd = 2, ...)

Arguments

bw

whether color scheme should be "black and white"

lty

vector of line type codes

lwd

vector of line widths

...

additional named arguments passed to trellis.par.set()

Value

Returns a list that can be supplied as the theme to trellis.par.set().

Note

These two functions are identical. col.mosaic is named similarly to lattice::col.whitebg(), but since more than just colors are set, theme.mosaic is a preferable name.

See Also

Examples

trellis.par.set(theme=theme.mosaic())
show.settings()
trellis.par.set(theme=theme.mosaic(bw=TRUE))
show.settings()

mosaic

Project MOSAIC Statistics and Mathematics Teaching Utilities

v1.8.3
GPL (>= 2)
Authors
Randall Pruim [aut, cre], Daniel T. Kaplan [aut], Nicholas J. Horton [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.