plotBinDensity | R Documentation |
Plot the density of binned elements with binning information.
plotBinDensity(
x,
b,
xlab = deparse(substitute(x, env = as.environment(-1))),
ylab = "Density",
main = "",
legendPosition = "right",
legend = NULL,
legend.cex = NULL,
...
)
x |
A numerical vector with the values used for binning. |
b |
A factor that groups elements of |
xlab , ylab , main |
|
legendPosition |
A |
legend |
Deprecated (ignored). Please use |
legend.cex |
Deprecated (ignored). You can use
|
... |
Further arguments passed to |
The generated density plot as a ggplot
object.
getColsByBin
, geom_density
set.seed(1)
x <- rnorm(100)
b <- bin(x, "equalN", nElements = 10)
plotBinDensity(x, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.