R/colour_distance.R
colour_blind_distance.Rd
The function calculates the distance matrices for every option. Then aggregates the matrices into a single distance matrix.
colour_blind_distance(
colours,
deutan = TRUE,
protan = FALSE,
tritan = FALSE,
gray = FALSE,
fun = min,
method = "emd"
)
a vector of colours
correct for deuteranomaly (red - green colour blindness).
Defaults to TRUE
.
correct for protanopia (red - green colour blindness).
Defaults to FALSE
.
correct for tritanopia (blue - yellow colour blindness).
Defaults to FALSE
.
correct for monochromacy (unable to distinguish colours).
Defaults to FALSE
.
Function to aggregate different colour distance matrices.
passed to colordistance::getColorDistanceMatrix()