View source: R/colour_distance.R
| colour_blind_distance | R Documentation | 
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"
)
colours | 
 a vector of colours  | 
deutan | 
 correct for deuteranomaly (red - green colour blindness).
Defaults to   | 
protan | 
 correct for protanopia (red - green colour blindness).
Defaults to   | 
tritan | 
 correct for tritanopia (blue - yellow colour blindness).
Defaults to   | 
gray | 
 correct for monochromacy (unable to distinguish colours).
Defaults to   | 
fun | 
 Function to aggregate different colour distance matrices.  | 
method | 
 passed to   | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.