Skip to contents

Small multiples of the summaries from calc_scale_curves() (or calc_spue_scale()) against H3 resolution, one line per group when present. Metrics named in log_y are drawn as log10(metric).

Usage

plot_scale_curves(
  df,
  metrics = c("n_cells", "median_n", "frac_eligible", "median_es"),
  log_y = c("n_cells", "median_n")
)

Arguments

df

output of calc_scale_curves() / calc_spue_scale(), possibly several bound together with a group column.

metrics

columns to plot (default the four headline curves).

log_y

metrics to draw on a log10 scale.

Value

ggplot2 plot