plot One-Step-Ahead (prediction) residuals from a aniMotum osar object

# S3 method for osar
plot(
  x,
  type = c("ts", "qqnorm", "acf"),
  pages = 1,
  ncol = 1,
  ask = TRUE,
  pal = "Zissou1",
  ...
)

Arguments

x

a aniMotum osar object with class osar

type

type of residual plot to generate: time-series (ts; default), qqnorm (qq), or acf

pages

plots of all individuals on a single page (pages = 1; default) or each individual on a separate page (pages = 0)

ncol

number of columns to use for faceting. Default is ncol = 2 but this may be increased for multi-individual fit objects

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 colour palette to use (default = "Zissou1"; see grDevices::hcl.pals() for options)

...

additional arguments to be ignored

Examples

## generate a fG_ssm fit object (call is for speed only)
xs <- fit_ssm(ellie, spdf=FALSE, model = "rw", time.step=24, 
control = ssm_control(se = FALSE, verbose = 0))
#> 

res <- osar(xs) 

plot(res, type = "qq")