Last chance! 50% off unlimited learning
Sale ends in
x
. Different symbols (colors) are used
for each object being compared and values corresponding to the same
group are joined by a line, to facilitate comparison of fits. If only
two coefficients are present, the trellis
function
xyplot
is used; otherwise the trellis
function splom
is used.# S3 method for compareFits
pairs(x, subset, key, …)
compareFits
.x
should be used in the plots. If missing, all
rows are used.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, key
is passed down as an
argument to the trellis
function generating the plots
(splom
or xyplot
). Defaults to TRUE
.trellis
function generating the plots.compareFits
,
plot.compareFits
,
pairs.lme
,
pairs.lmList
,
xyplot
,
splom
fm1 <- lmList(Orthodont)
fm2 <- lme(Orthodont)
pairs(compareFits(coef(fm1), coef(fm2)))
Run the code above in your browser using DataLab