plotBin: Bin plotting

Description Usage Arguments Value References

View source: R/plotBin.R

Description

Do a 'scatterplot bin smoothing'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
plotBin(
  x,
  y,
  h = NULL,
  nbins = NULL,
  cutpoint = 0,
  plot = TRUE,
  type = c("value", "number"),
  xlim = range(x, na.rm = TRUE),
  cex = 0.9,
  main = NULL,
  xlab,
  ylab,
  ...
)

Arguments

x

Forcing variable

y

Output

h

the bandwidth (defaults to 2*sd(runvar)*length(runvar)^(-.5))

nbins

number of Bins

cutpoint

Cutpoint

plot

Logical. Whether to plot or only returned silently

type

Whether returns the y averages, or the x frequencies

xlim, cex, main, xlab, ylab

Usual parameters passed to plot(), see par

...

further arguments passed to plot.

Value

Returns silently values

References

McCrary, Justin.


rddtools documentation built on Jan. 10, 2022, 5:07 p.m.