Customizing Stata graphs made easy
grstyle is a Stata command that allows you to customize the overall look of graphs from within a do-file without having to fiddle around with external scheme files. The advantage of grstyle over manually editing a scheme file is that everything needed to reproduce your graphs can be included in a single do-file. Furthermore, grstyle provides a number of useful features such as assigning color palettes or setting absolute sizes.
Stata 9.2 or newer is required. Some features may require newer Stata versions.
To install grstyle on your system, run commands
ssc install grstyle, replace ssc install palettes, replace ssc install colrspace, replace
in Stata. Some features of grstyle rely on utilities provided by the palettes package, which itself relies on the colrspace package. This is why these packages also need to be installed (in Stata versions prior to Stata 14.2, colrspace is not needed). Thereafter, type
to view the help file. To check for updates, type
adoupdate grstyle palettes colrspace
Alternatively, you can download grstyle, palettes, and colrspace from the SSC Archive and add the files to your system manually (see file readme.txt within grstyle.zip, palettes.zip, and colrspace.zip for installation instructions).
net install grstyle, replace from(https://raw.githubusercontent.com/benjann/grstyle/master/) net install palettes, replace from(https://raw.githubusercontent.com/benjann/palettes/master/) net install colrspace, replace from(https://raw.githubusercontent.com/benjann/colrspace/master/)
grstyle has been written by Ben Jann.
Thanks for citing grstyle in your work in one of the following ways:
Presentations on grstyle: