scale_fill_academic_c {AcademicThemes}R Documentation

Scale Plot Fills With Academic Themes (Continuous)

Description

Scale Plot Fills With Academic Themes (Continuous)

Usage

scale_fill_academic_c(palette_name, ...)

Arguments

palette_name

The name of a colour palette in AcademicThemes.

...

Arguments passed to ggplot2::scale_fill_gradientn()

Value

A layer that can be added to a ggplot2 object.

Examples

library(ggplot2)
ggplot(
  data.frame(
    x = rnorm(10000),
    y = rnorm(10000)
  ),
  aes(x = x, y = y)
) +
  geom_hex() +
  scale_fill_academic_c("cruk") +
  theme_classic() +
  labs(
    x = "X-Axis",
    y = "Y-Axis",
    fill = "Fill"
  )

[Package AcademicThemes version 0.0.2 Index]