resolvePlotDescription {Rggobi}R Documentation

Maps the variable references in a virtual plot description.

Description

Plot descriptions are templates for creating plots. The variables in the plot description are virtual in the sense that they have not been resolved to a particular dataset and variable. This function performs that mapping, returning a fully self-describing plot description from which a real plot can be instantiated directly.

This function is not typically called by the user, but used internally by the plotLayout function.

Usage

resolvePlotDescription(desc, .data = 1, .gobi=getDefaultGGobi(), isError = TRUE)

Arguments

desc the plot description whose variable references are to be resolved.
.data the dataset in the ggobi instance relative to which the variable references will be resolved. This should be specified as a ggobiDataset, name or integer.
.gobi the ggobi instance in which to find the dataset. If .data is supplied as a ggobiDataset, this is not used. Otherwise, it can be a ggobi object or an integer
isError a logical value, if TRUE means an error is generated if any of the variables are not found in the GGobi dataset. The purpose of this argument is to allow the caller to turn off errors in order to process multiple plots and then report the missing variables for all of them. This is often preferrable to reporting the first error and have the user solve the problems iteratively.

Value

An object of the same class as the input argument desc, but with the .ggobi and .data slots substituted with the values given in the call, and the variable references converted to integers identifying the variables within the dataset referenced by this object (in the .data field).

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

plotLayout scatterplotDescription ashDescription scatmatrixDescription parallelCoordDescription

Examples



[Package Rggobi version 1.1-3 Index]