grstyle

Customizing Stata graphs made easy

Description

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.

Installation

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

help grstyle

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).

Latest version

The latest versions of grstyle, palettes, and colrspace can be found at GitHub (more frequently updated than SSC). To install the packages from GitHub, type:

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/)

Author / Also see

grstyle has been written by Ben Jann.

Thanks for citing grstyle in your work in one of the following ways:

Presentations on grstyle:

Source of this website

This website is based on the Bootstrap framework (version 3.3.7) and has been generated by webdoc. The Stata do-files of this website can be downloaded from here.