plotBinDensity {monaLisa} | 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 = "", legend = "topright", legend.cex = 1, ... )
x |
A numerical vector with the values used for binning. |
b |
A factor that groups elements of |
xlab |
Label for x-axis. |
ylab |
Label for y-axis. |
main |
Main title. |
legend |
If not |
legend.cex |
A scalar that controls the text size in the legend relative
to the current |
... |
Further arguments passed to |
Invisibly the return value of density(x)
that generated the
plot.
set.seed(1) x <- rnorm(100) b <- bin(x, "equalN", nElements = 10) plotBinDensity(x, b)