scale_colour_academic_d {AcademicThemes}R Documentation

Scale Plot Colours With Academic Themes (Discrete)

Description

Scale Plot Colours With Academic Themes (Discrete)

Usage

scale_colour_academic_d(palette_name, ...)

Arguments

palette_name

The name of a colour palette in AcademicThemes.

...

Arguments passed to ggplot2::discrete_scale().

Value

A layer that can be added to a ggplot2 object.

Examples

library(ggplot2)
ggplot(
  data.frame(
    x = runif(1500),
    y = runif(1500),
    c = sample(LETTERS[1:3], 1500, replace = TRUE)
  ),
  aes(x = x, y = y, colour = c)
) +
  geom_point() +
  scale_colour_academic_d("cruk") +
  theme_classic() +
  labs(
    x = "X-Axis",
    y = "Y-Axis",
    colour = "Colour"
  )

[Package AcademicThemes version 0.0.2 Index]