Make sure that the following libraries are loaded before running other code.
There are two charts that we highlight in this video. Before running the code, try to predict what the result looks like.
ggplot() + geom_point(data=ChickWeight, aes(x=Time, y=weight, color=Chick))
Pay attention to the
subtitle keyword in
ggplot() + geom_point(data=ChickWeight, aes(x=Time, y=weight), size=1) + ggtitle("Weights of Chickens over Time", subtitle="Notice how the variance of weight also increases.")