brewscheme
brewscheme copied to clipboard
Stata package for creating user-defined scheme files using research-based color palettes
NEWS
A help file was added for the brewcolors command and all brewtheme specific and brewscheme documentation has been updated. There have been some minor refactorings implemented to change instances of the option refresh to the more typical Stata syntax replace.
brewscheme
A data visualization toolkit for Stata. This package contains Stata programs; Mata functions, classes, and methods; and Java plugins to make customizing graphs in Stata easier. The major functionality is provided by the brewtheme and brewscheme programs which generate a .theme file (for aesthetic settings that are not specific to a graph/plot type) and .scheme files (which inherit the .theme files and set aesthetic properties specific to plot/graph types). In addition to the user specified/requested aesthetics, these programs also leverage the libbrewscheme Mata library to generate parallel versions of these files with values that simulate the appearance to individuals with achromatopsia (complete color blindness), protanopia (red color sight impairment), deuteranopia (green color sight impairment), and tritanopia (blue color sight impairment).
There are additional programs for color interpolation (brewterpolate), translation between hexadecimal and RGB color spaces (hextorgb), estimating simulated RGB values for the forms of color sight impairments listed above (libbrewscheme), a color palette previewer (brewviewer), and a color vision simulator (brewcbsim).
Together, this provides users with a powerful toolkit to customize their data visualizations generated in Stata and makes it easier and faster to incorporate Stata code into production environments that require standardization.
Examples
To view examples, please see the project website.
References
License Information
Please view section 4 of the ColorBrewer copyright notice for additional information pertaining to the licensing and redistribution of ColorBrew intellectual property.
Additional Info
For additional information/examples about the brewscheme package see Buchanan, W. R. (2015). Brewing color schemes in Stata: Making it easier for end users to customize Stata graphs. Presented 31jul2015 at the 2015 Stata North American Users' Group Meeting. Columbus, OH.