plotBinHist | R Documentation |
Plot a histogram of binned elements with binning information.
plotBinHist(
x,
b,
breaks = 6 * nlevels(b),
xlab = deparse(substitute(x, env = as.environment(-1))),
ylab = "Frequency",
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 |
breaks |
A |
xlab , ylab , main |
|
legendPosition |
A |
legend |
Deprecated (ignored). Please use |
legend.cex |
Deprecated (ignored). You can use
|
... |
Further arguments passed to |
The generated histogram as a ggplot
object.
getColsByBin
, geom_histogram
set.seed(1)
x <- rnorm(100)
b <- bin(x, "equalN", nElements = 10)
plotBinHist(x, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.