plot.predint | R Documentation |
predint
objectsThis 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)
x |
object of class |
... |
arguments handed over to |
size |
size of the dots |
width |
margin of jittering |
alpha |
opacity of dot colors |
Since plot.predint()
is based on ggplot2::ggplot
, it returns
an object of class c("gg", "ggplot")
.
### 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.