fortify adds information to data based on a fitted model;
getData retrieves data as specified in the
1 2 3 4
original data set, if needed
fortify is defined in the
ggplot2 package, q.v. for more details.
fortify is not defined here,
fortify.merMod is defined as a function
rather than an S3 method, to avoid (1) inducing
a dependency on ggplot2 or (2) masking
methods from ggplot2.
This feature is both experimental and semi-deprecated,
as the help page for
fortify itself says:
“Rather than using this function, I now recommend using the
broom package, which implements a much wider range of
fortify may be deprecated in the future.”
broom.mixed package is recommended for mixed models
getData is a bare-bones implementation; it relies on
data argument having been specified and the data being
available in the environment of the formula. Unlike the functions
nlme package, it does not do anything special with
Loading required package: Matrix  "Reaction" "Days" "Subject" ".fitted" ".resid" ".scresid"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.