Skip to content

context-dependent/bptheme

Repository files navigation

bptheme

R-CMD-check

The goal of bptheme is to make effortless the application of Blueprint’s current corporate graphic standards to your ggplots.

Installation

You can install the development version of bptheme from GitHub with:

# install.packages("devtools")
devtools::install_github("context-dependent/bptheme")

Example Usage

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
  )
#> Warning: Removed 2 rows containing missing values (`geom_point()`).

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •