compare | R Documentation |
Computes CIELAB distance metric.
compare(x, metric = 2000, diag = FALSE, upper = FALSE)
x |
A |
metric |
An |
diag |
A |
upper |
A |
A distance matrix.
N. Frerebeau
Other diagnostic tools:
change()
,
plot.color_scheme()
,
plot_map()
,
plot_scheme()
,
plot_scheme_colourblind()
,
plot_tiles()
# Trichromat
pal <- colour("bright")
compare(pal(5))
# Deuteranopia
deu <- change(pal, mode = "deuteranopia")
compare(deu(5))
# Protanopia
pro <- change(pal, mode = "protanopia")
compare(pro(5))
# Tritanopia
tri <- change(pal, mode = "tritanopia")
compare(tri(5))
# Achromatopsia
ach <- change(pal, mode = "achromatopsia")
compare(ach(5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.