autoplot.bumbldf {bumbl} | 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())
object |
a dataframe produced by |
... |
other arguments passed to |
colony |
a character vector of colony IDs to plot |
x |
|
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)