ec.paxis {echarty} | R Documentation |
Create 'parallelAxis' for a parallel chart
ec.paxis(df = NULL, minmax = TRUE, cols = NULL, ...)
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. |
A list, see format in parallelAxis.
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