plot.fG_osar: plot

Description Usage Arguments Examples

View source: R/plot.fG_osar.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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

1
2
3
4
5
6
## 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 documentation built on April 27, 2021, 1:05 a.m.