stat_bin_2d_integer: stat_bin_2d_integer

View source: R/stat_bin_2d_integer.R

stat_bin_2d_integerR Documentation

stat_bin_2d_integer

Description

A function to use the StatBin2dInteger statistic

Usage

stat_bin_2d_integer(
  mapping = NULL,
  data = NULL,
  geom = "rect",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  nbins = 30,
  ...
)

Arguments

mapping

The aesthetic mapping, usually constructed with aes or aes_.

data

The data to be displayed in the layer.

geom

The geometric object to use display the data

position

Position adjustment, either as a string, or the result of a call to a position adjustment function.

na.rm

If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed.

show.legend

logical. Should this layer be included in the legends?

inherit.aes

If FALSE, overrides the default aesthetics, rather than combining with them.

...

other arguments passed on to layer.

bins

number of bins

Value

ggplot layer

Examples

library(ggplot2)
ggplot(mtcars, aes(mpg, disp)) +
  stat_bin_2d_integer(aes(fill = after_stat(count)), nbins = 30) +
  scale_y_log10()

jan-glx/schelpr documentation built on March 28, 2024, 1:35 a.m.