plot.nmGroupedData {nlme} | R Documentation |

The `groupedData`

object is summarized by the values of the
`displayLevel`

grouping factor (or the combination of its values
and the values of the covariate indicated in `preserve`

, if any is
present). The collapsed data is used to produce a new
`groupedData`

object, with grouping factor given by the
`displayLevel`

factor, which is plotted using the
appropriate `plot`

method for `groupedData`

objects with
single level of grouping.

## S3 method for class 'nmGroupedData' plot(x, collapseLevel, displayLevel, outer, inner, preserve, FUN, subset, key, grid, ...)

`x` |
an object inheriting from class |

`collapseLevel` |
an optional positive integer or character string indicating the grouping level to use when collapsing the data. Level values increase from outermost to innermost grouping. Default is the highest or innermost level of grouping. |

`displayLevel` |
an optional positive integer or character string
indicating the grouping level to use for determining the panels in
the Trellis display, when |

`outer` |
an optional logical value or one-sided formula,
indicating covariates that are outer to the |

`inner` |
an optional logical value or one-sided formula, indicating
a covariate that is inner to the |

`preserve` |
an optional one-sided formula indicating a covariate
whose levels should be preserved when collapsing the data according
to the |

`FUN` |
an optional summary function or a list of summary functions
to be used for collapsing the data. The function or functions are
applied only to variables in |

`subset` |
an optional named list. Names can be either positive
integers representing grouping levels, or names of grouping
factors. Each element in the list is a vector indicating the levels
of the corresponding grouping factor to be used for plotting the
data. Default is |

`key` |
an optional logical value, or list. If |

`grid` |
an optional logical value indicating whether a grid should
be added to plot. Default is |

`...` |
optional arguments passed to the Trellis plot function. |

a Trellis display of the data collapsed over the values of the
`collapseLevel`

grouping factor and grouped according to the
`displayLevel`

grouping factor.

JosÃ© Pinheiro and Douglas Bates bates@stat.wisc.edu

Bates, D.M. and Pinheiro, J.C. (1997), "Software Design for Longitudinal Data", in "Modelling Longitudinal and Spatially Correlated Data: Methods, Applications and Future Directions", T.G. Gregoire (ed.), Springer-Verlag, New York.

`groupedData`

, `collapse.groupedData`

,
`plot.nfnGroupedData`

, `plot.nffGroupedData`

# no collapsing, panels by Dog plot(Pixel, display = "Dog", inner = ~Side) # collapsing by Dog, preserving day plot(Pixel, collapse = "Dog", preserve = ~day)

[Package *nlme* version 3.1-131 Index]