Getting ready

We will use the ggplot2, nlme, and lsmeans packages in this recipe. These can be installed via the usual install.packages() command.

Get R Statistics Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.