Skip to contents

Creates a dumbbell plot showing the min-max range of a value across groups (typically states), ordered by median value.

Usage

plot_seasonal_range(
  data,
  state_col = "state",
  value_col = "value",
  title = NULL,
  x_label = NULL
)

Arguments

data

Data frame containing at least state_col and value_col.

state_col

Column name for grouping (y-axis). Default "state".

value_col

Column name for the value to summarise. Default "value".

title

Plot title. Default NULL (auto-generated from value_col).

x_label

X-axis label. Default NULL (uses value_col).

Value

A ggplot object.