Skip to content

Latest commit

 

History

History
92 lines (63 loc) · 3.26 KB

README.md

File metadata and controls

92 lines (63 loc) · 3.26 KB

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()