cvdPlot: Show color-deficiency simulations of a plot

Description Usage Arguments Details Value Examples

View source: R/cvdPlot.R

Description

Plot the color-deficiency simulations for ggplot grob.

Usage

1
2
3
4
cvdPlot(
  plot = last_plot(),
  layout = c("origin", "deuteranope", "protanope", "desaturate")
)

Arguments

plot

The grob to be plotted.

layout

The sub-figure types. the choices are origin, deuteranope, protanope, desaturate, and enhanced, enhanced.deuteranope, enhanced.protanope, enhanced.desaturate.

Details

This function is modified from <https://github.com/clauswilke/colorblindr>

Value

An object of ggplot.

Examples

1
2

colorBlindness documentation built on April 17, 2021, 9:06 a.m.