plotBin | R Documentation |
Do a 'scatterplot bin smoothing'
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,
...
)
x |
Forcing variable |
y |
Output |
h |
the bandwidth (defaults to |
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 |
... |
further arguments passed to plot. |
Returns silently values
McCrary, Justin.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.