View source: R/tactile.theme.R
tactile.theme | R Documentation |
A custom theme for lattice that tries to make away with some of the
(in this author's opinion) excessive margins that result from the default
settings. It also provides a different color theme based partly on
latticeExtra::custom.theme()
.
tactile.theme(fontsize = c(12, 8), color = TRUE, ...)
fontsize |
A vector of two numeric scalars for text and symbols respectively. |
color |
Colorized theme. |
... |
Additional named options. |
The theme currently modifies the default lattice theme so that
paddings (margins) are minimized,
axis tick lengths are halved, and
title size is decreased slightly.
A list of graphical parameters that for instance could be supplied
inside a call to lattice::xyplot()
or set via
lattice::lattice.options()
.
xyplot(speed ~ dist, data = cars, par.settings = tactile.theme())
opars <- trellis.par.get()
trellis.par.set(tactile.theme())
show.settings()
trellis.par.set(opars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.