HistogramColorstats: Histogram of data using color scheme

Description Usage Arguments Value Examples

Description

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.

Usage

1
2
3
HistogramColorstats(datavector, color_ramp = "grey17", minimum = NULL,
  maximum = NULL, color_value_breaks = NULL, dist_stats = NULL,
  mean_color = "red", quantile_color = "black", title = "")

Arguments

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

Value

ggplot histogram

Examples

1
histogram_colorstats(rnorm(100))

RebeccaStubbs/MapSuite documentation built on May 9, 2019, 9:37 a.m.