Draw a radar interval band from original-unit bounds

geom_radar_band.RdMap axis, lower and upper from long data. Map group to the interval
series, or use group = 1 for one series per panel. Use fixed Cartesian
coordinates and share one radar_spec() with profiles, grids and labels.
Usage
geom_radar_band(
mapping = NULL,
data = NULL,
position = "identity",
...,
spec,
missing = c("error", "gap", "omit_group"),
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)Arguments
- mapping, data, position, ..., na.rm, show.legend, inherit.aes
See
geom_radar().- spec
A specification from
radar_spec(). Its bounds and spoke order apply in every panel. Data can contain facet variables for panel-specific intervals. Data without facet variables are repeated across panels.- missing
How to handle a missing bound or missing axis row within a band group and panel. Use
"error","gap"to leave both adjacent sectors open, or"omit_group"to skip the incomplete band.
Details
Bounds must be within the scale for their axis, and the lower bound
must be at most the upper bound. Contiguous sectors form one filled path.
Complete bands retain a hole where their inner boundary encloses an area.
An isolated spoke or a run with zero width has no filled area. Each band's
mapped fill, colour, alpha, linewidth and linetype must be constant within
the group. Use colour to draw a boundary. Add the band before profile
layers to keep points and lines clear. Supplied intervals describe the
individual indicators. A joint coverage claim requires a separate model.
Examples
bounds <- data.frame(axis = c("Coverage", "Testing", "Response"),
lower = c(50, 40, 62), upper = c(74, 82, 90))
spec <- radar_spec(bounds$axis, c(0, 100))
ggplot2::ggplot(bounds, ggplot2::aes(axis = axis, lower = lower, upper = upper, group = 1)) +
geom_radar_band(spec = spec) + geom_radar_grid(spec) + ggplot2::coord_fixed()