Skip to contents

stat_hexgrid Custom Stat for hexagonal grid plot

Usage

stat_hexgrid(
  mapping = NULL,
  data = NULL,
  geom = GeomHexgrid$default_aes(),
  position = "identity",
  show.legend = NA,
  outliers = TRUE,
  inherit.aes = TRUE,
  ...
)

Arguments

mapping

Aesthetic mappings for the plot.

data

The data to be plotted.

geom

The geometry to be used in the plot.

position

The position adjustment to be applied.

show.legend

Whether to show the legend for this layer.

outliers

Whether to include outliers.

inherit.aes

Whether to inherit aesthetics from the plot or the layer.

...

Additional arguments to be passed to the `layer` function.

Value

A `ggplot2` layer object.