powered by
creates a histogram plot
histogram_plot( data, x, y = "count", group = NULL, facet_x = NULL, facet_y = NULL, palette = ez_col, position = "stack", bins = 30, alpha = 0.5, facet_scales = "fixed", facet_ncol = NULL, legend_ncol = NULL, env = parent.frame() )
A data.frame.
A named character value. Evaluates to a column.
A character value. Evaluates to a column.
A character. Evaluates to a column.
Colour function.
Either "stack" (default) or "fill"
"stack"
"fill"
number of bins
fill alpha
Option passed to scales argument in facet_wrap or facet_grid. Default is "fixed".
facet_wrap
facet_grid
"fixed"
Option passed to ncol argument in facet_wrap or facet_grid. Default is NULL.
NULL
Number of columns in legend.
environment for evaluating expressions.
histogram_plot(airquality, "Wind", group = "Month") histogram_plot(airquality, "Wind", "density", facet_x = "Month")
Run the code above in your browser using DataLab