Catppuccin for
ggplot
🌻 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'
# install.packages("devtools")
devtools::install_github("albert-ying/catppuccin")
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()