Skip to content

Add Catppuccin palette to ggplot

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

albert-ying/catppuccin

Repository files navigation

Logo
Catppuccin for ggplot

Previews

🌻 Latte

## `geom_smooth()` using formula 'y ~ x'

🪴 Frappé

## `geom_smooth()` using formula 'y ~ x'

🌺 Macchiato

## `geom_smooth()` using formula 'y ~ x'

🌿 Mocha

## `geom_smooth()` using formula 'y ~ x'

Installation

# install.packages("devtools")
devtools::install_github("albert-ying/catppuccin")

Usage

  library(ggplot2)
  library(catppuccin)

  ggplot(mtcars, aes(mpg, wt)) +
    geom_point(aes(colour = factor(cyl))) +
    scale_colour_catppuccin(palette = "latte") +
    theme_bw()

  ggplot(mtcars, aes(mpg, wt)) +
    geom_point(aes(colour = hp)) +
    scale_colour_catppuccin(palette = "frappe", discrete = FALSE) +
    theme_bw()

## Warning in scale_colour_catppuccin(palette = "frappe", discrete = FALSE): This
## palette has not been optimized for linear perception. Use at your own risk.

  ggplot(data = mpg) +
    geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
    scale_colour_catppuccin(palette = "macchiato") +
    theme_bw()

  ggplot(diamonds) +
    geom_bar(aes(x = cut, fill = clarity)) +
    scale_fill_catppuccin() +
    theme_bw()

 

About

Add Catppuccin palette to ggplot

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages