inst/doc/Colour_Palettes.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup, echo = FALSE, message = FALSE-------------------------------------
library(AcademicThemes)

for (palette in academic_colour_palette_names()) {
  colour_palette <- academic_colour_palette(palette)
  image(1:length(colour_palette), 1, matrix(1:length(colour_palette)),
        main = paste0("Colour Palette: ", palette), xlab = "", ylab = "",
        col = colour_palette, xaxt = "n", yaxt = "n", bty = "n")
}

Try the AcademicThemes package in your browser

Any scripts or data that you put into this service are public.

AcademicThemes documentation built on May 29, 2024, 8:21 a.m.