View source: R/histogram_plot.R
histogram_plot | R Documentation |
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()
)
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. |
histogram_plot(airquality, "Wind", group = "Month")
histogram_plot(airquality, "Wind", "density", facet_x = "Month")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.