knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%", dpi = 160, dev.args = list(type = "cairo"), fig.ext = "png" )
The goal of bptheme is to make effortless the application of Blueprint's current corporate graphic standards to your ggplots.
You can install the development version of bptheme from GitHub with:
# install.packages("devtools") devtools::install_github("context-dependent/bptheme")
library(bptheme) library(bpscales) library(ggplot2) library(palmerpenguins) d <- penguins d |> ggplot(aes(bill_length_mm, bill_depth_mm)) + geom_point(aes(fill = species), shape = 21, size = 3) + labs( title = "Penguin Face Analytics", subtitle = "Bill Depth ~ Bill Length + Species", x = "Bill Length (mm)", y = "Bill Depth (mm)", fill = "Species" ) + theme_blueprint() + scale_fill_blueprint( discrete = TRUE, type = "multi", option = "spectrum", begin = .25, end = .75 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.