powered by
This function takes valid R colors and transforms them according to a cvd transform matrix.
simulate_cvd(col, cvd_transform)
A color or vector of colors e.g., "#FFA801" or "blue"
A 3x3 matrix specifying the color vision deficiency transform matrix
# NOT RUN { simulate_cvd(c("#005000","blue","#00BB00"), tritanomaly_cvd['6'][[1]]) # }
Run the code above in your browser using DataLab