Legend-driven technique


Welcome     Gallery     Handbook


Manual page for Legend-driven_technique(PL)

"Legend-driven technique" allows bar color, scatterplot symbol, etc. to be controlled by a data field. This technique involves defining a legend first, containing information to associate data field contents with appearance details. Then the plotting is done.

Here is the procedure:

1. For every expected variation (bar color, scatterplot symbol, or whatever) set up an explicit legend entry using proc legendentry . Label, tag, and details attributes should be supplied. The tag will be compared with data field contents. The details attributes control appearance.

2. Plot, using the appropriate attribute. For example, if you are doing a bar graph where individual bar colors are controlled by a data field, you would use proc bars and specify a colorfield.


data display engine  
Copyright Steve Grubb


Markup created by unroff 1.0,    December 10, 2001.