Learn R Programming

echarty (version 1.4.7)

ec.paxis: Parallel Axis

Description

Create 'parallelAxis' for a parallel chart

Usage

ec.paxis(df = NULL, minmax = TRUE, cols = NULL, ...)

Value

A list, see format in parallelAxis.

Arguments

df

A data.frame, regular or grouped

minmax

Boolean to add max/min limits or not, default TRUE

cols

A string vector with columns names in desired order

...

Additional arguments for parallelAxis.

Examples

Run this code
iris |> dplyr::group_by(Species) |> ec.init(ctype='parallel')

ec.init(preset= FALSE,
        parallelAxis= ec.paxis(mtcars, 
                               cols= c('gear','cyl','hp','carb'), nameRotate= 45),
        series= list(list(type= 'parallel', smooth= TRUE, 
                          data= ec.data(mtcars, 'dataset') ))
)

Run the code above in your browser using DataLab