xyplot
is used.# S3 method for nfnGroupedData
plot(x, outer, inner, innerGroups, xlab, ylab, strip, aspect, panel,
key, grid, …)
nfnGroupedData
,
representing a groupedData
object with a numeric primary
covariate and a single grouping level.
TRUE
, attr(object, "outer")
is used to
indicate the outer covariates. An outer covariate is invariant within
the sets of rows defined by the grouping factor. Ordering of the
groups is done in such a way as to preserve adjacency of groups with
the same value of the outer variables. Defaults to NULL
,
meaning that no outer covariates are to be used.
TRUE
, attr(object, "inner")
is used to
indicate the inner covariate. An inner covariate can change within
the sets of rows defined by the grouping factor. Defaults to
NULL
, meaning that no inner covariate is present.
inner
covariate. Different colors, or line types, are used for each level
of the innerGroups
factor. Default is NULL
, meaning
that no innerGroups
covariate is present.
attr(object,
"labels")
and attr(object, "units")
pasted together.
strip
argument to
the xyplot
function. Default is strip.default(…, style
= 1)
(see trellis.args
).
aspect
argument to the
xyplot
function. Default is "xy"
(see
trellis.args
).
panel
argument
to the xyplot
function.TRUE
and innerGroups
is non-NULL
, a legend for the
different innerGroups
levels is included at the top of the
plot. If given as a function, it is passed as the key
argument
to the xyplot
function. Default is TRUE
if
innerGroups
is non-NULL
and FALSE
otherwise.
TRUE
.xyplot
function.groupedData
, xyplot
# different panels per Subject
plot(Orthodont)
# different panels per gender
plot(Orthodont, outer = TRUE)
Run the code above in your browser using DataLab