Learn R Programming

foieGras (version 0.6-7)

plot.fG_osar: plot

Description

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

Usage

# S3 method for fG_osar
plot(x, type = c("qqnorm", "histogram"), bw = 0.5, ...)

Arguments

x

a foieGras osar object with class `fG_osar`

type

type of residual plot to generate; either qqnorm (default) or histogram

bw

binwidth for histogram plots (see ggplot2::geom_histogram for details), ignored if type = "qqnorm"

...

additional arguments to be ignored

Examples

Run this code
# NOT RUN {
## load example osar output (to save time)
data(fssm)
d <- fssm[1, ] ## just use first seal to save time
dres <- osar(d)
plot(dres, type = "qq")

# }

Run the code above in your browser using DataLab