R/colorjam-gradient.R
showDichromat.Rd
Show colors using dichromat color blindness adjustment
showDichromat(
x,
type = c("deutan", "protan", "tritan"),
sep = "\n",
spacer = TRUE,
original = TRUE,
do_plot = TRUE,
...
)
list
or character
vector with R compatible colors.
character
passed to dichromat::dichromat()
for one
or more types of color blindness to simulate.
character
used as a delimited to label each resulting
color vector.
logical
indicating whether to include a blank spacer
between sets of colors. This spacer is mainly useful for display.
logical
indicating whether to include original colors
and adjusted colors.
logical
indicating whether to plot the results
using jamba::showColors()
.
additional arguments are ignored.
This function is a very simple wrapper around jamba::showColors()
which also applies one of the color blindness emulations from
dichromat::dichromat()
.
Other colorjam display:
color_pie()
showDichromat(jam_linear["firebrick"])
showDichromat(jam_linear[1:2])
showDichromat(jam_linear[7:9])
showDichromat(jam_linear, type="tritan", spacer=FALSE)
showDichromat(jam_linear, type="tritan", spacer=FALSE, original=FALSE)