stat_binscatter: Binscatter

Description Usage Arguments

View source: R/stat_binscatter.R

Description

Group variable on the horizontal axis into equal-sized bins and calculate group means for each bin

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
stat_binscatter(
  mapping = NULL,
  data = NULL,
  geom = "point",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)

Arguments

geom

Which geom to plot (defaults to "point", other options include "pointrange" or "line")

bins

Number of bins (defaults to 10)


SZuzek/nicePlots documentation built on Dec. 18, 2021, 12:01 p.m.