jamCalcDensity | R Documentation |
Calculate scatter plot point density
jamCalcDensity(x, nbin, bandwidth = NULL, range.x)
x |
|
nbin |
|
bandwidth |
|
range.x |
|
This function is called internally by plotSmoothScatter()
,
and is an equivalent replacement for
grDevices
non-exported function .smoothScatterCalcDensity(),
understandably a requirement by CRAN. A package should not rely
on another package hidden function.
list
with elements used internally by plotSmoothScatter()
,
with: x1, x2, fhat, bandwidth.
Other jam internal functions:
handleArgsText()
,
make_html_styles()
,
make_styles()
,
smoothScatterJam()
sdim(jamCalcDensity(cbind(x=rnorm(1000) + 4, y=rnorm(1000) + 4), nbin=30))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.