Description Usage Arguments Value Examples
This histogram function creates and returns a ggplot object with a color scale dependent on the X value (default as all colors being grey) as well as the possibility for vertical lines that describe different properties of the distribution (mean, median, etc) added on top of the graph.
1 2 3 |
datavector |
vector of color data |
color_ramp |
color scheme for the histogram |
minimum |
min value to display in histogram |
maximum |
max value to display in histogram |
color_value_breaks |
values to break colors at |
dist_stats |
which distribution to use |
mean_color |
color to use at mean |
quantile_color |
color to use for quantiles |
ggplot histogram
1 | histogram_colorstats(rnorm(100))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.