autoplot.bumbldf | R Documentation |
Plots observed (points) and fitted (red line) values from the model implemented by bumbl()
, faceted by colony.
## S3 method for class 'bumbldf'
autoplot(object, ..., colony = NULL, x = deprecated())
invisibly returns a ggplot object
bombus_subset <- bombus[bombus$colony %in% c("17", "104", "20", "24"), ]
results <- bumbl(bombus_subset, colonyID = colony, t = week,
formula = mass ~ week)
library(ggplot2)
autoplot(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.