View source: R/diag.panel.splom.density.R
diag.panel.splom.density | R Documentation |
Plots univariate density estimates estimates to be used in a
lattice::splom()
call with the diag.panel
argument.
diag.panel.splom.density(
x,
bw = "nrd0",
adjust = 1,
kernel = "gaussian",
weights = NULL,
n = 512,
...
)
x |
data vector corresponding to that row / column (which will be the same for diagonal 'panels'). |
bw |
the smoothing bandwidth to be used. The kernels are scaled such that this is the standard deviation of the smoothing kernel. (Note this differs from the reference books cited below, and from S-PLUS.)
The specified (or computed) value of |
adjust |
the bandwidth used is actually |
kernel |
the smoothing kernel to be used. See |
weights |
numeric vector of non-negative observation weights,
hence of same length as Note that weights are not taken into account for automatic
bandwidth rules, i.e., when |
n |
the number of equally spaced points at which the density is
to be estimated. When |
... |
Further arguments passed on to |
lattice::diag.panel.splom()
, lattice::splom()
,
stats::density()
.
splom(~ iris[1:4],
data = iris,
diag.panel = diag.panel.splom.density,
pscales = 0
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.