help schemepackschemepack v1.4 (GitHub)

SCHEMEPACK

NOTE: This package requires Stata v15 or higher. Most schemes are defined using RGB colors, which can only be read in newer Stata versions.

This package releases a suite graph schemes as part of the Stata Guide. Several schemes are part of a series where the name define the background color: white,black, and gg.
The gg_* schemes are similar to the ggplot2 style in R. There are also several standalone schemes like neon (set scheme neon) and rainbow (set scheme rainbow).

Most of the schemes are derived from the built-in s2color, cleanplots (Mize 2018),
and plainplot from blindschemes (Bischof 2017).
Colors are derived from Ben Jann's colorpalette package (Jann 2018).
A sample data and dofile are provided on GitHub for testing the schemes.

Schemes can be defined inside dofiles using 'set scheme <scheme name>'. For example, set scheme white_tableau at the beginning of the dofile will set white_tableau as the default for the graphs.
Schemes can also be set permanently using the set scheme white_tableau, perm option.
They can also be used interactively while making graphs, for example, 'twoway (scatter y x), scheme(white_tableau)'.

Please see the GitHub for sample data, dofiles, gallery, and other updates.

Schemes

1. Use your own dataset or load auto:
sysuse auto, clear

2. Click on a scheme:

Series:
Tableau - white_tableau black_tableau gg_tableau
Cividis - white_cividis black_cividis gg_cividis
Viridis - white_viridis black_viridis gg_viridis
Hue - white_hue black_hue gg_hue
BrBg - white_brbg black_brbg gg_brbg
PiYg - white_piyg black_piyg gg_piyg
pTol - white_ptol black_ptol gg_ptol
Jet - white_jet black_jet gg_jet
w3d - white_w3d black_w3d gg_w3d

Standalones:
Rainbow - rainbow
Neon - neon
Taylor Swift's Red - swift_red
Ukraine - ukraine

Colorblind-friendly schemes:
Tab1 - tab1
Tab2 - tab2
Tab3 - tab3
cblind1 - cblind1

3. And try it out:

Bar graph
graph bar (mean) turn mpg trunk rep78 headroom gear_ratio, title(Bar graph)

Box plot
graph box turn mpg trunk rep78 headroom gear_ratio, title(Box plot)

Also try different graph types. See the complete gallery on GitHub.
Once the schemes are loaded, various elements can be customized using standard options.
Since minor elements might still be fine-tuned, please check for updates once in a while. Please report issues and suggestions on GitHub.

Package details

Version : schemepack v1.4
This release : 08 Nov 2022
First release: 08 Apr 2021
Repository : GitHub
Keywords : Stata, graph, schemes
License : MIT

Author : Asjad Naqvi
E-mail : asjadnaqvi@gmail.com
Twitter : @AsjadNaqvi