Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/custom.theme.black.R
Alternative Lattice themes.
1 2 3 4 5 |
symbol |
colors for points and lines. |
fill |
colors for polygons. |
region |
color ramp for continuous regions. |
reference |
color of reference lines. |
bg |
background color. |
fg |
foreground color. |
etc |
|
This is a wrapper around custom.theme
with different defaults. It can be used as a Lattice themes.
The etc
argument sets:
grey strips;
solid plot symbols;
translucent plot symbols (alpha = 0.5);
thick lines;
no borders on polygons.
These settings can be modified by editing the resulting list. An easy
way to do that is via simpleTheme
(see
examples).
a list of settings suitable for passing to trellis.par.set
.
Felix Andrews felix@nfrac.org
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | opar <- trellis.par.get()
trellis.par.set(custom.theme.black())
latticeStyleDemo()
## make changes to the theme
myTheme <- modifyList(custom.theme.black(),
simpleTheme(alpha.points = 0.1))
myTheme$add.line$lty <- 3
## now apply myTheme, or just:
trellis.par.set(simpleTheme(alpha.points = 0.1))
trellis.par.set(add.line = list(lty = 3))
latticeStyleDemo()
trellis.par.set(opar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.