geom_violin_quantile_fill: Get HEX color codes used by ggplot2

Description Usage Arguments Value Author(s) References

View source: R/geom_violin_quantile_fill.R

Description

Get HEX color codes used by ggplot2.

Usage

1
geom_violin_quantile_fill(p, df_gr, df_data, width = 1)

Arguments

p

The ggplot2 made with geom_violin to modify.

df_gr

The grouping variable as in the x parameter in the aes used.

df_data

The data that should be used to calculate quantiles as in the y parameter in the aes used.

width

Width as in geom_violin in the ggplot2 package.

Value

Character vector containing the HEX code of the colors.

Author(s)

Original code by Troy (see reference). Turned into a function a and added to package by Jan Stanstrup, [email protected]

References

http://stackoverflow.com/questions/22278951/combining-violin-plot-with-box-plot


stanstrup/Rplot.extra documentation built on Nov. 30, 2017, 11:50 p.m.