Skip to contents

Radar chart

Usage

x_radar(w, x = "x", y = "y", color = NULL, label = TRUE, size = 1, ticks = 3)

Arguments

w

an xkcd widget object

x

x variable (dimension)

y

y variable (spoke length)

color

optional group variable mapped to colors

label

display labels for each dimension

size

dot size

ticks

number of ticks on the main line

Examples

data.frame(
 x = rep(c("strength", "patience", "skillfulness", "resilience", "flexibility"), 2),
 y = abs(rnorm(10)),
 g = rep(c("tiger", "lion"), each = 5)
) |>
 x_chart(title = "Tiger and lion: a random comparison") |>
 x_radar(color = "g")