Extracts color$col from the user-defined level of a ggplot2 style.
get_style_colors(style = cognigen_style(), element = "scatter")list of style elements, liked one return by cognigen_style
or read_style. Alternatively, style can be set to 'ggplot2' to revert to the
defaults of the ggplot2 package.
Either 'scatter' (default), 'ramp', 'bar', 'box.sym', 'box.rec', 'hist', 'hist.dens', 'vpc', 'vpc.style', 'vpc.tte.style', 'spline', 'hline', 'vline', 'abline', 'error', 'background'
A vector of characters, typically RGB colors in hex format.
get_style_colors()
#> [1] "#5B5B5B" "#FF0000" "#0000FF" "#008000" "#FFA000" "#FF00A0" "#00DDFF"
#> [8] "#C76A0C" "#888888" "#50E050" "#8F308F"
get_style_colors(element = 'bar')
#> [1] "#FFFFFF" "#FF7F7F" "#7F7FFF" "#7FBF7F" "#FFCF7F" "#FF7FCF" "#7FEEFF"
#> [8] "#E3B485" "#C3C3C3" "#A7EFA7" "#C797C7"
get_style_colors(style = cognigen_purple_style())
#> [1] "#5B5B5B" "#E79BFF" "#D48CEA" "#C17DD6" "#AF6FC2" "#9C60AE" "#89529A"
#> [8] "#774386" "#643572" "#51265E" "#3F184A"