intensity_pallette: 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
intensity_pallette(start, r, gamma, hue_list = c(0.5, 1, 3))

Arguments

start

numeric start-point for cubehelix color ramp

r

number of rotations through cubehelix color ramp

gamma

numeric; how light or dark you want it to be 1: normal, higher:darker, lower: lighter

hue

numeric;how bright you want the colors to be 1: normal, higher: brighter, lower: more demure

color_value_breaks

values to break colors at

dist_stats

which distribution to use

Value

an adapted cubehelix color pallette, increasing in intensity.

Examples

1

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