bb_radarchart | R Documentation |
Helper for creating a radar chart
bb_radarchart(bb, data, mapping = NULL, ...)
bb |
A |
data |
A |
mapping |
Mapping of variables on the chart, see |
... |
Arguments passed to |
A billboard
htmlwidget
object.
library("billboarder")
# data about Avengers
data("avengers_wide")
# if not specified, first column is used as x-axis,
# all others are used on y-axis
billboarder() %>%
bb_radarchart(data = avengers_wide)
# specify explicitly which column to use with mapping
billboarder() %>%
bb_radarchart(
data = avengers_wide,
mapping = bbaes(x = axis, y = `Captain America`)
)
# with data in "long" format you can use "group" aesthetics
data("avengers")
billboarder() %>%
bb_radarchart(
data = avengers,
mapping = bbaes(x = axis, y = value, group = group)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.