Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.fG_osar

plot


Description

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

Usage

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

Arguments

x

a foieGras osar object with class fG_osar

type

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

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

hcl.colors colour palette to use (default = "Zissou1"; type hcl.pals() for options)

...

additional arguments to be ignored

Examples

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

dres <- osar(xs[2, ]) # only use one seal to save time
plot(dres, type = "qq")

foieGras

Fit Continuous-Time State-Space and Latent Variable Models for Quality Control of Argos Satellite (and Other) Telemetry Data and for Estimating Movement Behaviour

v0.7-6
MIT + file LICENSE
Authors
Ian Jonsen [aut, cre, cph], Toby Patterson [aut, ctb]
Initial release
2021-04-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.