plot One-Step-Ahead (prediction) residuals from a foieGras osar
object
# S3 method for fG_osar
plot(
x,
type = c("ts", "qqnorm", "acf"),
pages = 1,
ncol = 1,
ask = TRUE,
pal = "Zissou1",
...
)
a foieGras osar
object with class fG_osar
type of residual plot to generate; time-series (ts), qqnorm (qq; default) or acf (note: hist is deprecated)
plots of all individuals on a single page (pages = 1; default) or each individual on a separate page (pages = 0)
number of columns to use for faceting. Default is ncol = 2 but this may be increased for multi-individual fit objects
logical; if TRUE (default) user is asked for input before each plot is rendered. set to FALSE to return ggplot objects
hcl.colors
colour palette to use (default = "Zissou1"; type hcl.pals()
for options)
additional arguments to be ignored
# NOT RUN {
## 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")
# }
Run the code above in your browser using DataLab