Description Usage Arguments Details See Also Examples
Add radar chart.
1 2 3 4 5 6 7 | eradar(p, serie, name = NULL, clickable = TRUE, symbol = NULL,
symbolSize = 4, symbolRotate = NULL, legendHoverLink = TRUE,
polarIndex = 0, z = 2, zlevel = 0, ...)
eradar_(p, serie, name = NULL, clickable = TRUE, symbol = NULL,
symbolSize = 4, symbolRotate = NULL, legendHoverLink = TRUE,
polarIndex = 0, z = 2, zlevel = 0, ...)
|
p |
an echart object. |
serie |
value column name to plot. |
name |
of serie. |
clickable |
whether plot is clickable. |
symbol |
marker, see details for valid values. |
symbolSize |
of symbol. |
symbolRotate |
angle by which symbol is rotated, i.e.: |
legendHoverLink |
enables legend hover links. |
polarIndex |
polar coordinates index. |
z, zlevel |
first and second grade cascading control, the higher z the closer to the top. |
... |
any other options to pass to the serie. |
Valid values for symbol
:
circle
rectangle
triangle
diamond
emptyCircle
emptyRectangle
emptyTriangle
emptyDiamond
heart
droplet
pin
arrow
star
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | radar <- data.frame(axis = rep(LETTERS[1:6], 4), grp = sample(LETTERS[4:9], 24, replace = TRUE),
value = runif(24, 2, 10))
radar %>%
group_by(grp) %>%
echart(axis) %>%
eradar(value, symbolSize = 0) %>%
elegend() %>%
etheme("macarons")
radar %>%
group_by(grp) %>%
echart(axis) %>%
eradar(value, symbolSize = htmlwidgets::JS("function(value){return(value)}")) %>%
elegend() %>%
etheme("roma")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.