ec.paxis {echarty}R Documentation

Parallel Axis

Description

Create 'parallelAxis' for a parallel chart

Usage

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

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.

Value

A list, see format in parallelAxis.

Examples

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

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


[Package echarty version 1.4.5 Index]