latticeExtra (version 0.6-9)

gplotArgs.data.frame: Grouped Display Arguments from a Data Frame

Description

Extract arguments suitable for gplot from a data.frame with appropriate meta-data

Usage

## S3 method for class 'data.frame':
gplotArgs(x, display.formula,
          outer = FALSE, inner = FALSE, \dots)
## S3 method for class 'data.frame':
gplotArgs(x) <- value

Arguments

x
an object of class ``data.frame''
display.formula
a Trellis display formula
outer
logical or one-sided formula
inner
logical or one-sided formula
...
extra arguments, passed on as appropriate
value
a list containing named components, to be stored as special attributes of x, including but not limited to

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

These are

Value

  • gplotArgs should return a list.

synopsis

gplotArgs.data.frame(x, display.formula, outer = FALSE, inner = FALSE, groups = NULL, ..., subset = TRUE)

Details

The gplotArgs method for data frames constructs a suitable list as descibed in gplotArgs.default. The display.formula argument can be used to specify the Trellis formula used (usually, it will be constructed from the meta-data).

For the role of outer and more details, consult nlme documentation for now.

See Also

gplot

Examples

Run this code
gplotArgs(iris) <-
    list(formula = Sepal.Length ~ 1 | Species,
         order.groups = TRUE,
         labels = list(Sepal.Length = "Sepal
Length",
         Sepal.Width = "Sepal
Width"))
gplot(iris)
gplot(iris, display.formula = Sepal.Length ~ Sepal.Width | Species)

Run the code above in your browser using DataLab