eradar: Add radar

Description Usage Arguments Details See Also Examples

View source: R/add.R

Description

Add radar chart.

Usage

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, ...)

Arguments

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.: 30.

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.

Details

Valid values for symbol:

See Also

official radar options docs

Examples

 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")

JohnCoene/echarts documentation built on May 4, 2018, 8:04 a.m.