This can be useful in identifying issues arising from color-vision deficiency. You can provide a data.frame that has columns luminance, chroma, hue, hex - or you can provide an object that can be coerced into that form using pth_data_cvd(): a pth_mat, pth_palette, or hex-code character.

pth_plot_polar(data, ...)

# S3 method for default
pth_plot_polar(data, ...)

# S3 method for data.frame
pth_plot_polar(data, ...)

# S3 method for character
pth_plot_polar(
  data,
  cvd = pth_cvd_grid_none(),
  transformer = pth_to_cieluv,
  ...
)

# S3 method for pth_mat
pth_plot_polar(data, cvd = pth_cvd_grid_none(), ...)

# S3 method for pth_palette
pth_plot_polar(data, cvd = pth_cvd_grid_none(), n_point = 11, ...)

Arguments

data

object coercible to data.frame with columns luminance, chroma, hue, hex.

...

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.

n_point

integer number of points from the palette.

Value

Object with S3 classes "gg", "ggplot"; i.e. a ggplot.

Details

If you provide the cvd argument anything other than the simplest case, you will have to add faceting. You will have to do this yourself; the operative columns are condition and severity.