Learn R Programming

foieGras (version 0.4.0)

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)
fres <- osar(fssm)
plot(fres, "qq")
plot(fres, "hist")

# }

Run the code above in your browser using DataLab