Learn R Programming

hypercube (version 0.2.1)

plot,Cube-method: Visualizes a Cube object as parallel coordinate plot

Description

Generates a parallel coordinate plot for a given Cube object. All added selections and aggregations will be regarded.

Usage

# S4 method for Cube
plot(x, color = NA, colorscale = "RdBu", ...)

Arguments

x

The Cube object that should be plotted.

color

The color of the lines in the parallel coordinate plot. If this parameter is NA or NULL, a colorscale rather than a unique color will be used.

colorscale

The colorscale for the lines in the parallel coordinate plot. Default is RdBu. All plotly colorscales (e.g., Blackbody, Earth, Jet) are possible.

...

Further plot_ly parameters.

See Also

Cube

Examples

Run this code
# NOT RUN {
data("sales")
cube = generateCube(sales, columns = list(time = c("month", "year"),
      location = c("state"), product = "product"), valueColumn = "amount")
plot(cube)

# }

Run the code above in your browser using DataLab