plot.predint function

Plots of predint objects

Plots of predint objects

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

## 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

Returns

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()
  • Maintainer: Max Menssen
  • License: GPL (>= 2)
  • Last published: 2024-03-04