Nothing
require(ghibli) knitr::opts_chunk$set( comment = "#", error = FALSE, tidy = FALSE, cache = FALSE, collapse = TRUE, fig.width = 5)
。◕‿‿◕。 Welcome to the world of ghibli. Palettes for the young at heart 。◕‿‿◕。
You can see the list of available palettes with ghibli_palettes()
:
# see palette names and colours par(mfrow=c(7,3)) for(i in names(ghibli_palettes)) print(ghibli_palette(i))
Any palette's take your fancy? The next section will show you how to use ghibli
palettes inside plots.
Use ghibli palettes with ggplot2 by accessing the relevant scale_[colour|fill]_ghibli_[c|d]()
functions:
library(ggplot2) ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) + geom_jitter(size = 3) + scale_colour_ghibli_d("MarnieMedium1") + theme_minimal() + labs(title="Marnie Medium (1) Palette Test", subtitle="A plot that is only useful for demonstration purposes")
Over to you ╯°□°)╯
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.