plumbr (version 0.6.9)

RegionSelection-class: The ItemSelection class implements '>Selection for the selection of 1D and 2D regions in plot/data space.

Description

The ItemSelection class implements '>Selection for the selection of 1D and 2D regions in plot/data space.

Arguments

Constructor

Interpreting the Selection

Any R object can represent the underlying selection, so for simplicity we recommend that the client interpret the selection through coercion. Currently, there is only one supported coercion of RegionSelection:

as.matrix(x): returns a matrix with a column for each dimension and a row for each point. In the 2D case, the points describe one or more polygons. As with the polygon function, polygons are separated by rows of NA, and the last point is connected with the first. In the 1D case, the single column might encode, for example, selections of factor levels in an area plot.

We will probably need to add more coercions as use cases arise. This is still very preliminary.

Supported Selection Calculus

For now, RegionSelection only supports the add operation described in the documentation for '>Selection.

See Also

'>Selection for the rest of the details.

Examples

Run this code
# NOT RUN {
## forthcoming
# }

Run the code above in your browser using DataCamp Workspace