plot.stackCalSPD | R Documentation |
Visualises multiple SPDs grouped as a stackCalSPD
object.
## S3 method for class 'stackCalSPD'
plot(
x,
type = "stacked",
calendar = "BP",
spdnormalised = FALSE,
rescale = FALSE,
runm = NA,
xlim = NA,
ylim = NA,
xaxt = "s",
yaxt = "s",
gapFactor = 0.2,
col.fill = NA,
col.line = NA,
lwd.obs = 1,
lty.obs = 1,
cex.lab = 1,
cex.axis = cex.lab,
legend = TRUE,
legend.arg = NULL,
ylab = NA,
ymargin = 1.1,
rnd = 2,
...
)
x |
A |
type |
How to display the SPDs.Current options are |
calendar |
Either |
spdnormalised |
A logical variable indicating whether the total probability mass of the SPDs are normalised to sum to unity. Default is FALSE. |
rescale |
A logical variable indicating whether the summed probabilities values should be rescaled to range 0 to 1. Default is FALSE.Notice that this is different from setting |
runm |
A number indicating the window size of the moving average to smooth the SPD. If set to |
xlim |
the x limits of the plot. In BP or in BC/AD depending on the choice of the parameter |
ylim |
the y limits of the plot. |
xaxt |
Whether the x-axis tick marks should be displayed ( |
yaxt |
Whether the y-axis tick marks should be displayed ( |
gapFactor |
Defines spacing between SPDs as proportion of the y-axis range for multipanel plots. Default is 0.2. |
col.fill |
Vector of fill color for the observed SPDs. The default color scheme is based on the Dark2 pallette of RColorBrewer package. |
col.line |
Line colour for the observed SPDs.The default color scheme is based on the Dark2 palette of RColorBrewer package. |
lwd.obs |
Line width for the observed SPDs. Default is 1. |
lty.obs |
Line type for the observed SPDs. Default is 1. |
cex.lab |
The magnification to be used for x and y labels relative to the current setting of cex. Default is adjusted to 1. |
cex.axis |
The magnification to be used for axis annotation relative to the current setting of cex. Default is adjusted to 1. |
legend |
Whether legend needs to be displayed. Item names will be retrieved from the values supplied in the argument |
legend.arg |
list of additional arguments to pass to |
ylab |
a title for the y axis |
ymargin |
multiplier for the maximum value on ylim range. Default is 1.1. |
rnd |
integer indicating the number of decimal places to be displayed in the y-axis for when |
... |
Additional arguments affecting the plot. |
The display order of the SPDs is given by the factor levels of the user-supplied group
argument in the stackspd()
function.
Erich Neuwirth (2014). RColorBrewer: ColorBrewer Palettes. R package version 1.1-2. https://CRAN.R-project.org/package=RColorBrewer.
## Not run:
data(emedyd)
x = calibrate(x=emedyd$CRA, errors=emedyd$Error,normalised=FALSE)
bins = binPrep(sites=emedyd$SiteName, ages=emedyd$CRA,h=100)
res = stackspd(x=x,timeRange=c(16000,8000),bins=bins,group=emedyd$Region)
plot(res,type='stacked')
plot(res,type='lines')
plot(res,type='proportion')
plot(res,type='multipanel')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.