Oversimplifying things, color-vision deficiency collapses the color-wheel into a "color-line", such that luminance and chroma are the important dimensions.

pth_plot_lumchroma(x, ...)

# S3 method for default
pth_plot_lumchroma(x, ...)

# S3 method for character
pth_plot_lumchroma(
  x,
  cvd = pth_cvd_grid_deupro(),
  transformer = NULL,
  color_point_inner = "white",
  color_point_outer = "black",
  size_point_inner = 6,
  size_point_outer = 7,
  ...
)

# S3 method for pth_hex
pth_plot_lumchroma(
  x,
  cvd = pth_cvd_grid_deupro(),
  transformer = NULL,
  color_point_inner = "white",
  color_point_outer = "black",
  size_point_inner = 6,
  size_point_outer = 7,
  ...
)

# S3 method for pth_mat
pth_plot_lumchroma(
  x,
  cvd = pth_cvd_grid_deupro(),
  color_point_inner = "white",
  color_point_outer = "black",
  size_point_inner = 6,
  size_point_outer = 7,
  ...
)

# S3 method for data.frame
pth_plot_lumchroma(
  x,
  name_color_space = NULL,
  color_point_inner = "white",
  color_point_outer = "black",
  size_point_inner = 6,
  size_point_outer = 7,
  ...
)

Arguments

x

Object coerced into a CVD data-frame (pth_data_cvd()). Can be a hex-code, pth_mat, or even a data frame.

...

other args (not used)

cvd

tbl_df with columns condition, severity; see pth_cvd_grid().

transformer

function used to transform the colors to new color space, e.g. pth_to_cieluv.

color_point_inner, color_point_outer

character colors to use to outline points.

size_point_inner, size_point_outer

numeric size of the points.

name_color_space

character name of the color space used.

Value

Object with S3 class ggplot.

Examples

# uses some colors from Okabe-Ito
pth_plot_lumchroma(c("#E69F00", "#009E73", "#D55E00", "#F0E442"))