binscatter: Makes a bin scatter plot

Description Usage Arguments Value

View source: R/binscatteR.R

Description

Makes a bin scatter plot

Usage

1
2
3
binscatter(data = NULL, x = NULL, y = NULL, weights = NULL,
  numbins = 20, xlab = NULL, ylab = NULL, title = NULL,
  se = FALSE, smooth = FALSE)

Arguments

data

data

x

the x variable

y

the y variable

weights

optional weights

numbins

number of bins. defaults to 20

xlab

x label for plot. defaults to name of x

ylab

y label for plot. defaults to name of y

title

title for plot. defaults to binned scatter of y on x

se

logical for whether to plot standard error of mean estimate. defaults to false

smooth

logical for whether to plot smoother. defaults to false

Value

binned_df (the binned data) and plot_out (the plot)


shommazumder/binscatteR documentation built on May 29, 2019, 8:23 p.m.