DAAGtheme {DAAG} | R Documentation |
Function to generate lattice themes for graphs.
Description
This generates themes for use in "A Practical Guide to Data Analysis Using R".
Usage
DAAGtheme(fontsize = list(text = 10, points = 6), box = "gray40", color=TRUE,
sides = list(tck = 0.6, pad1 = 0.75, pad2 = 0.75),...)
Arguments
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 |
Details
Setting the color of the bounding box and of the strip boxes to gray, which is the default, reduces the focus on them.
Value
A list which can be used as the par.settings
argument to lattice
graphics functions, or as the theme
argument to trellis.par.set()
.
Note
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
.
Author(s)
John Maindonald.
See Also
standard.theme
, simpleTheme
,
theEconomist.theme
,
custom.theme
Examples
bwtheme <- DAAGtheme(pch=2:4)
lattice::xyplot(csoa ~ age | target, groups=sex,
data=DAAG::tinting, par.settings=bwtheme)