Description Usage Arguments Author(s) See Also
Auxiliary functions for the customization of trellis graphics with
lattice
.
xscale.raster
and yscale.raster
suppress the right and top
axis, respectively. xscale.raster.subticks
and
yscale.raster.subticks
also suppress those axis and draw subticks.
rasterTheme
is a
customization of the custom.theme.2
function of
latticeExtra
using a Yellow-Orange-Red palette from
RColorBrewer
.
RdBuTheme
, GrTheme
and
BTCTheme
are variations of rasterTheme
with different
color defaults for the region argument.
streamTheme
is a variation of rasterTheme
using black for
the region, gray for the panel background and a sequential palette for points.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | yscale.raster(lim, ...)
xscale.raster(lim, ...)
yscale.raster.subticks(lim, ...)
xscale.raster.subticks(lim, ...)
rasterTheme(pch=19, cex=0.7, region=rev(brewer.pal(9, 'YlOrRd')), ...)
RdBuTheme(region=brewer.pal(9, 'RdBu'), ...)
BuRdTheme(region=rev(brewer.pal(9, 'RdBu')), ...)
PuOrTheme(region=brewer.pal(9, 'PuOr'), ...)
GrTheme(region=rev(brewer.pal(9, 'Greys')), ...)
BTCTheme(region=BTC(n=9), ...)
streamTheme(region='black',
symbol=brewer.pal(n=5, name='Blues'),
alpha=0.6,
panel.background=list(col='gray20'),
...)
|
lim |
Range of data. |
pch |
Symbol used for points. |
cex |
A numeric multiplier to control the size of the points. |
region |
A palette to fill in regions. |
symbol |
A palette to display symbols. |
panel.background |
Parameters of the panel background. |
alpha, ... |
Additional arguments for |
Oscar Perpiñán Lamigueiro
custom.theme
, custom.theme.2
, BTC
,
xscale.components.default
, xscale.components.subticks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.