*! version 1.0.0 21MAR2016

Prefix command to create color sight impairment proofs of a graph.

help for brewproof

brewproof -- is a program to generate a proof copy of a graph
to simulate how the image would be viewed by individuals with achromatopsia,
protanopia, deuteranopia, and tritanopia.

Syntax

brewproof, scheme(brewscheme scheme file): graph command

Description

brewproof is used to simulate the appearance of the specified
graph as seen if the viewer suffered from achromatopsia, protanopia, deuteranopia,
or tritanopia. This is a prefix type command that wraps the user-specified
graph file to generate separate simulated graphs as well as a proof copy with
all four of the color impaired versions of the graph on a single image.

Examples

Generate a graph with ggplot2 styled aesthetics.

sysuse auto.dta, clear

brewproof, scheme(ggtest2) : tw lowess mpg weight, || scatter mpg weight if rep78 == 1 || scatter mpg weight if rep78 == 2 || scatter mpg weight if rep78 == 3 || scatter mpg weight if rep78 == 4 || scatter mpg weight if rep78 == 5, legend(order(2 "1978 Repair Record = 1" 3 "1978 Repair Record = 2" 4 "1978 Repair Record = 3" 5 "1978 Repair Record = 4" 6 "1978 Repair Record = 5"))

References

Wickline, M. (2014). Color.Vision.Simulate, Version 0.1. Retrieved from:
http://galacticmilk.com/labs/Color-Vision/Javascript/Color.Vision.Simulate.js. Retrieved on: 24nov2015.

Meyer, G. W., & Greenberg, D. P. (1988). Color-Defective Vision and Computer Graphics Displays.
Computer Graphics and Applications, IEEE 8(5), pp. 28-40.

Smith, V. C., & Pokorny, J. (2005). Spectral sensitivity of the foveal cone photopigments between 400 and 500nm.
Journal of the Optical Society of America A, 22(10), pp. 2060-2071.

Lindbloom, B. (2001). RGB working space information. Retrieved from: http://www.brucelindbloom.com/WorkingSpaceInfo.html. Retrieved on 24nov2015.

Author

William R. Buchanan, Ph.D.

Data Scientist

Minneapolis Public Schools

William.Buchanan at mpls [dot] k12 [dot] mn [dot] us