14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 12 <strong>Scripting</strong> Graphs 401<br />

Graphing Elements<br />

)<br />

);<br />

Figure 12.7 Normal Contour Function<br />

Normal Contour is thus a generalized way to accomplish effects like Bivariate’s density ellipses, which are<br />

demonstrated to good effect with the Football sample data (just open the data table Football and run its<br />

stored Bivariate script).<br />

Gradient Function<br />

The syntax of the gradient function is<br />

Gradient Function(expression, xname, yname, [zlow, zhigh], ZColor([colorLow,<br />

colorHigh]), , )<br />

This function fills a set of rectangles on a grid according to a color determined by the expression value as it<br />

crosses a range corresponding to a range of colors. To implement it, use the following syntax.<br />

GradientFunction(<br />

expression<br />

xname,yname,<br />

[zlow, zhigh],<br />

ZColor([colorLow,<br />

colorHigh])<br />

<br />

<br />

)<br />

the expression to be contoured, which is a function in terms<br />

of the two variables that follow<br />

the two variable names used in the expression<br />

the low and high expression values the gradient is scaled<br />

between<br />

the colors corresponding to the low value and the high<br />

value<br />

optional specification for the grid of values

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!