Description Usage Arguments Details Value
View source: R/histogram_plot.R
histogram_plot()
plots a histogram if a continuous variable from accidents
is chosen or a bar plot if a categorical variable is chosen.
1 | histogram_plot(data, x, y)
|
data |
A dataframe, specifically the |
x |
A variable from |
y |
The number of bins |
Creates a bar plot if a categorical variable is chosen to prevent issues with plotting non-continuous data as a histogram.
A histogram plot if continuous or a bar plot if categorical
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.