nlme (version 3.1-1)

plot.compareFits: Plot a compareFits Object

Description

A Trellis dotplot of the values being compared, with different rows per group, is generated, with a different panel for each coefficient. Different symbols (colors) are used for each object being compared.

Usage

plot(object, subset, key, mark, ...)

Arguments

object
an object of class compareFits.
subset
an optional logical or integer vector specifying which rows of object should be used in the plots. If missing, all rows are used.
key
an optional logical value, or list. If TRUE, a legend is included at the top of the plot indicating which symbols (colors) correspond to which objects being compared. If FALSE, no legend is included. If given as a list,
mark
an optional numeric vector, of length equal to the number of coefficients being compared, indicating where vertical lines should be drawn in the plots. If missing, no lines are drawn.
...
optional arguments passed down to the trellis function generating the plots.

Value

  • A Trellis dotplot of the values being compared, with rows determined by the groups and panels by the coefficients.

See Also

compareFits, pairs.compareFits, dotplot

Examples

Run this code
data(Orthodont)
fm1 <- lmList(Orthodont)
fm2 <- lme(Orthodont)
plot(compareFits(coef(fm1), coef(fm2)))

Run the code above in your browser using DataCamp Workspace