DAAGtheme | R Documentation |
This generates themes for use in "A Practical Guide to Data Analysis Using R".
DAAGtheme(fontsize = list(text = 10, points = 6), box = "gray40", color=TRUE,
sides = list(tck = 0.6, pad1 = 0.75, pad2 = 0.75),...)
fontsize |
Fontize for text and points. Specify as, e.g., |
box |
Color for the panel and strip borders |
color |
Logical, determining whether graph will be colored or grayscale |
sides |
List, with elements |
... |
Settings that will be passed to |
Setting the color of the bounding box and of the strip boxes to gray, which is the default, reduces the focus on them.
A list which can be used as the par.settings
argument to lattice
graphics functions, or as the theme
argument to trellis.par.set()
.
The code provides an example of the creation of a functions that
generates themes that are tuned to specific user requirements.
In this connection, see also theEconomist.theme
.
John Maindonald.
standard.theme
, simpleTheme
,
theEconomist.theme
,
custom.theme
bwtheme <- DAAGtheme(pch=2:4)
lattice::xyplot(csoa ~ age | target, groups=sex,
data=DAAG::tinting, par.settings=bwtheme)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.