plot.ssm_df | R Documentation |
visualize fits from an ssm object
## S3 method for class 'ssm_df'
plot(
x,
what = c("fitted", "predicted", "rerouted"),
type = 1,
outlier = TRUE,
alpha = 0.3,
pages = 0,
ncol = 1,
ask = TRUE,
pal = "default",
normalise = TRUE,
group = FALSE,
...
)
x |
a |
what |
specify which location estimates to display on time-series plots: fitted, predicted, or rerouted |
type |
of plot to generate: 1-d time series for lon and lat separately
(type = 1, default); 2-d track plot (type = 2); 1-d time series of move
persistence estimates (type = 3; if fitted model was |
outlier |
include outlier locations dropped by prefilter (outlier = TRUE, default) |
alpha |
opacity of standard errors. Lower opacity can ease visualization when multiple ellipses overlap one another |
pages |
each individual is plotted on a separate page by default (pages = 0), multiple individuals can be combined on a single page; pages = 1 |
ncol |
number of columns to arrange plots when combining individuals on a single page (ignored if pages = 0) |
ask |
logical; if TRUE (default) user is asked for input before each plot is rendered. set to FALSE to return ggplot objects |
pal |
grDevices::hcl.colors palette to use (see |
normalise |
logical; if plotting move persistence estimates from an |
group |
logical; should |
... |
additional arguments to be ignored |
a ggplot object with either: (type = 1) 1-d time series of fits to data, separated into x and y components (units = km) with prediction uncertainty ribbons (2 x SE); or (type = 2) 2-d fits to data (units = km)
## generate a ssm fit object (call is for speed only)
xs <- fit_ssm(sese2, spdf=FALSE, model = "rw", time.step=72, control = ssm_control(verbose = 0))
# plot fitted locations as 1-D timeseries on 1 page
plot(xs, what = "f", pages = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.