cherry | R Documentation |
Researchers wanting to understand the relationship between these variables for black cherry trees collected data from 31 trees in the Allegheny National Forest, Pennsylvania.
cherry
A data frame with 31 observations on the following 3 variables.
diameter in inches (at 54 inches above ground)
height is measured in feet
volume in cubic feet
D.J. Hand. A handbook of small data sets. Chapman & Hall/CRC, 1994.
library(ggplot2)
library(broom)
ggplot(cherry, aes(x = diam, y = volume)) +
geom_point() +
geom_smooth(method = "lm")
mod <- lm(volume ~ diam + height, cherry)
tidy(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.