histogram_plot {ezplot} | R Documentation |
histogram_plot
Description
creates a histogram plot
Usage
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()
)
Arguments
data |
A data.frame. |
x |
A named character value. Evaluates to a column. |
y |
A named character value. Evaluates to a column. |
group |
A character value. Evaluates to a column. |
facet_x |
A character value. Evaluates to a column. |
facet_y |
A character. Evaluates to a column. |
palette |
Colour function. |
position |
Either |
bins |
number of bins |
alpha |
fill alpha |
facet_scales |
Option passed to scales argument in |
facet_ncol |
Option passed to ncol argument in |
legend_ncol |
Number of columns in legend. |
env |
environment for evaluating expressions. |
Examples
histogram_plot(airquality, "Wind", group = "Month")
histogram_plot(airquality, "Wind", "density", facet_x = "Month")
[Package ezplot version 0.7.13 Index]