plot.predint {predint}R Documentation

Plots of predint objects

Description

This function provides methodology for plotting the prediction intervals or limits that are calculated using the functionality of the predint package.

Usage

## S3 method for class 'predint'
plot(x, ..., size = 4, width = 0.05, alpha = 0.5)

Arguments

x

object of class predint

...

arguments handed over to ggplot2::aes()

size

size of the dots

width

margin of jittering

alpha

opacity of dot colors

Value

Since plot.predint() is based on ggplot2::ggplot, it returns an object of class c("gg", "ggplot").

Examples

### PI for quasi-Poisson data
pred_int <- quasi_pois_pi(histdat=ames_HCD,
                          newoffset=3,
                          nboot=100,
                          traceplot = FALSE)

### Plot the PI
plot(pred_int)

### Since plot.predint is based on ggplot, the grafic can be altered using
# the methodology provided via ggplot2
plot(pred_int)+
     theme_classic()


[Package predint version 2.2.1 Index]