| plot.trim.index | R Documentation |
Uncertainty ranges exressed as standard errors are always plotted.
Confidence intervals are plotted when they are present in the trim.index object, i.e. when requested for in the call to index.
## S3 method for class 'trim.index'
plot(
x,
...,
names = NULL,
covar = "auto",
xlab = "auto",
ylab = "Index",
pct = FALSE,
band = "se"
)
x |
an object of class |
... |
additional |
names |
optional character vector with names for the various series. |
covar |
|
xlab |
a title for the x-axis. The default value is "auto" will be changed to "Time Point" if the time ID's start at 1, and to "Year" otherwise. |
ylab |
a title for the y-axis. The default value is "Index". |
pct |
Switch to show the index values as percent instead as fraction (i.e., for the base year it will be 100 instead of 1) |
band |
Defines if the uncertainty band will be plotted using standard errors ("se") or confidence intervals ("ci"). |
Other analyses:
coef.trim(),
confint.trim(),
gof(),
index(),
now_what(),
overall(),
overdispersion(),
plot.trim.overall(),
plot.trim.smooth(),
results(),
serial_correlation(),
summary.trim(),
totals(),
trendlines(),
trim(),
vcov.trim(),
wald()
Other graphical post-processing:
heatmap(),
plot.trim.totals()
# Simple example
data(skylark2)
z <- trim(count ~ site + year, data=skylark2, model=3)
idx <- index(z)
plot(idx)
# Example with user-modified title, and different y-axis scaling
plot(idx, main="Skylark", pct=TRUE)
# Using covariates:
z <- trim(count ~ site + year + habitat, data=skylark2, model=3)
idx <- index(z, covars=TRUE)
plot(idx)
# Suppressing the plotting of covariate indices:
plot(idx, covar="none")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.