Skip to contents

Joins a data frame keyed on cell (hex string) to hexagon polygons and draws it with gmap_indicator().

Usage

gmap_cells(
  df,
  column = "es",
  label = column,
  trans = "identity",
  mask = NULL,
  ...
)

Arguments

df

data frame with a cell column (e.g. from obis_cell_indicators(), calc_spue_cells()).

column

column to fill by (default "es").

label

legend label (default column).

trans

scale transformation (see gmap_indicator()).

mask

optional logical vector (same length as df) — cells where FALSE are drawn with NA fill (e.g. df$n >= 50 to mask unreliable ES(50)).

...

passed to gmap_indicator() (crs, bbox).

Value

ggplot2 plot