ec.paxis | R Documentation |
Build 'parallelAxis' for a parallel chart
ec.paxis(dfwt = NULL, cols = NULL, minmax = TRUE, ...)
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. |
This function could be chained to ec.init or used with a data.frame
A list, see format in parallelAxis.
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)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.