SPSS Color Scale for ggplot2

Description

Applies the SPSS color palette as a discrete color scale for points, lines, and other geoms that use the color aesthetic.

Usage

scale_color_SPSS(..., version = "modern", direction = 1)

Arguments

Additional arguments passed to ggplot2::discrete_scale().
version Character. “modern” (default) or “legacy”.
direction Integer. 1 for normal order, -1 for reversed.

Value

A ggplot2 discrete scale object.

Examples

library("psych350lab")

library(ggplot2)
ggplot(superman, aes(x = clark_height, y = lois_height, color = factor(type))) +
  geom_point(size = 3) +
  scale_color_SPSS() +
  theme_SPSS()