Show colors using dichromat color blindness adjustment
Source:R/colorjam-gradient.R
showDichromat.RdShow colors using dichromat color blindness adjustment
Usage
showDichromat(
x,
type = c("deutan", "protan", "tritan"),
sep = "\n",
spacer = TRUE,
original = TRUE,
do_plot = TRUE,
...
)Arguments
- x
listorcharactervector with R compatible colors.- type
characterpassed todichromat::dichromat()for one or more types of color blindness to simulate.- sep
characterused as a delimited to label each resulting color vector.- spacer
logicalindicating whether to include a blank spacer between sets of colors. This spacer is mainly useful for display.- original
logicalindicating whether to include original colors and adjusted colors.- do_plot
logicalindicating whether to plot the results usingjamba::showColors().- ...
additional arguments are ignored.
Details
This function is a very simple wrapper around jamba::showColors()
which also applies one of the color blindness emulations from
dichromat::dichromat().
See also
Other colorjam display:
color_pie(),
combine_alphas()




