add information to data based on a fitted model
fortify.Rdfortify adds information to data based on a fitted model;
getData retrieves data as specified in the data
argument
Usage
fortify.merMod(model, data = getData(model),
...)
# S3 method for class 'merMod'
getData(object)Details
fortifyis defined in the ggplot2 package, q.v. for more details.fortifyis not defined here, andfortify.merModis 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 forfortifyitself says: “Rather than using this function, I now recommend using thebroompackage, which implements a much wider range of methods.fortifymay be deprecated in the future.” Thebroom.mixedpackage is recommended for mixed models in general.getDatais a bare-bones implementation; it relies on adataargument having been specified and the data being available in the environment of the formula. Unlike the functions in thenlmepackage, it does not do anything special withna.actionorsubset.