General functions for adding extra layers to existing plots.
add.XYZGhosts(object = NULL,
..., unit = "native",
ghost.panel = panel.loaPlot) add.Y2Axis(object = NULL,
..., unit = "native",
rescale = NULL)
add.XYPolygon(object = NULL,
x = NULL, y = NULL, data = NULL,
..., unit = "native",
y2.scale=FALSE, first=FALSE)
add.LonLatMap(object = NULL,
..., map = NULL, recolor.map=FALSE,
show.axes = FALSE, unit = "native",
first = TRUE)
add...
functions returns the supplied (or last)
lattice plot with an additional plot layer added.
The plot to add an extra plot layer or layers to. This defaults to last lattice plot produced if not set in call.
Additional arguments, passed on to related functions.
The plot units, by default native.
The plot panel to use when adding ghost points (lines, etc).
For add.Y2Axis
, y data-series
rescaling, by default NULL/none.
x and y data-series to be used.
If supplied, the expected source of x and y data-series.
When building the Plot, use the second y axis if that exists, default FALSE.
When building the plot add the new plot layer first, default varies.
Options when adding a map layer, see loaMapPlot documentations.
Karl Ropkins
add.loaGhosts
adds ghost points showing the
locations of all points in all panels.
add.Y2Axis
adds a second y axis.
add.XYPolygon
adds a supplied (x,y) polygon.
add.LonLatMap
adds a map layer.
These functions make extensive use of code developed by others.
lattice: Sarkar, Deepayan (2008) Lattice: Multivariate Data Visualization with R. Springer, New York. ISBN 978-0-387-75968-5
Grid (part of base R): R Core Team (2017). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.R-project.org/.