Skip to contents

This function creates a custom discrete colour scale for Aphantasia groups in ggplot2 plots.

Usage

scale_discrete_aphantasia(aesthetics = c("color", "fill"), name = NULL, ...)

Arguments

aesthetics

Aesthetics to apply the scale to. Default is c("color", "fill").

name

Name of the scale. Default is NULL.

...

Additional arguments passed to ggplot2::scale_discrete_manual().

Value

A ggplot2 scale object for discrete aesthetics.