Skip to contents

Build 'parallelAxis' for a parallel chart

Usage

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

Arguments

dfwt

An echarty widget OR a data.frame(regular or grouped)

cols

A string vector with columns names in desired order

minmax

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

...

Additional attributes for parallelAxis.

Value

A list, see format in parallelAxis.

Details

This function could be chained to ec.init or used with a data.frame

Examples

iris |> dplyr::group_by(Species) |>    # chained
ec.init(ctype= 'parallel', series.param= list(lineStyle= list(width=3))) |> 
ec.paxis(cols= c('Petal.Length','Petal.Width','Sepal.Width'))
mtcars |> ec.init(ctype= 'parallel', parallelAxis= ec.paxis(mtcars, cols= c('gear','cyl','hp','carb'), nameRotate= 45), series.param= list(smooth= TRUE) )