Skip to content

Provides ggplot2 themes and color palettes aligned with the World Bank's visual identity ๐Ÿ“ˆ๐ŸŒ

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

lsms-worldbank/wbplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

wbplot

Lifecycle: experimental

While {ggplot2} provides a powerful tools for producing engaging visualizations, it also confronts would-be users with an overwhelming array of technical and stylistic choices: how tailor the look of common plot types, which colors to use, etc.

The goals of {wbplot} are to:

  • Promote โ€œon-brandโ€ plots. Offering tools to easily align data viz with the World Bank Groupโ€™s Branding and Visual Identity Guidelines.
  • Collect corporate colors and curated color palettes. Providing easy access to primary and secondary corporate colors (e.g., World Bank Groupโ€™s blues) as well as curated color palettes for different data needs (e.g., qualitative, converging, diverging, etc).
  • Streamline plot production through brand-aware and plot-specific {ggplot2} themes. Supply a set of simple theme functions that effortlessly meet common viz needs (e.g., column plot, bar plot, line plot, etc.).

Installation

Since {wbplot} is not yet available on CRAN, it can be installed from GitHub as follows:

if (!require("pak")) install.packages("pak")
pak::pak("lsms-worldbank/wbplot")

Usage

Themes

Step 1: compose a {ggplot2} plot.

Step 2: add the appropriate wbplot theme (e.g.ย + wb_theme_bar()):

  • wb_theme(). General theme.
  • wb_theme_bar(). Implements sensible defaults for a (horizontal) bar plots. Offers options: whether to include x-axis grid lines; whether to show x-axis scale, title, and labels; whether to have axis titles on the x and y axes.
  • wb_theme_column(). Implements sensible defaults for column plots. Offers options: whether to include y-axis grid lines; whether to show y-axis scale, title, and labels; whether to have axis title son the x and y axis.
  • wb_theme_line(). Implements sensible defaults for line plots. Offers options: whether to include y-axis scale, title, and labels; whether to use axis titles on x and y axes.

Color

COMING SOON

About

Provides ggplot2 themes and color palettes aligned with the World Bank's visual identity ๐Ÿ“ˆ๐ŸŒ

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages