Learn R Programming

Paris2024Colours (version 0.2.0)

scale_fill_paris2024_d: Paris 2024 palettes for plotting with ggplot2

Description

Function for using Paris2024Colours colours schemes in ggplot2. Use scale_colour_paris2024_d and scale_fill_paris2024_d for discrete scales, and use scale_colour_paris2024_c and scale_fill_paris2024_c for continuous scales.

Usage

scale_fill_paris2024_d(name, reverse = FALSE, ...)

Value

A function that returns a discrete colour scale.

Arguments

name

Name of the colour palette. Options are Logo, OlympicRings, GamesLook, Generation2024, Impact2024, TerreDeJeux, Tickets and Flame.

reverse

Whether to reverse colour palette (TRUE) or not (FALSE, default).

...

Other arguments passed on to discrete_scale

Examples

Run this code
library(ggplot2)
ggplot2::ggplot(
  data = iris, aes(x = Species, y = Sepal.Length, fill = Species)
) +
  geom_violin() +
  scale_fill_paris2024_d("GamesLook")

Run the code above in your browser using DataLab