14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 9 Data Tables 301<br />

Row State Operators<br />

)<br />

);<br />

);<br />

Text( Center Justified, {5, 2.5}, " " );<br />

Text( Right Justified,<br />

{-.5, -2}, "Shade -2", {-.5, -2.25}, "(Very dark)",<br />

{-.5, -1}, "Shade -1", {-.5, -1.25}, "(Dark)",<br />

{-.5, 0}, "Shade 0", {-.5, -.25}, "(Basic hue)",<br />

{-.5, 1}, "Shade 1", {-.5, .75}, "(Light)",<br />

{-.5, 2}, "Shade 2", {-.5, 1.75}, "(Very light)"<br />

);<br />

Figure 9.9 Hues and Shades<br />

Note: There are no -Of operators for Hue and Shade. Color Of returns the equivalent Color State<br />

index for a color row state that has been set with Hue State or Shade State. The following example<br />

gives rows 4 and 5 the same dark red marker:<br />

Row State( 4 ) = Combine States( Hue State( 0 ), Shade State( -1 ), Marker<br />

State( 12 ) );<br />

Row State( 5 ) = Combine States(<br />

Color State( Color Of( Row State( 4 ) ) ),<br />

Marker State( Marker Of( Row State( 4 ) ) )<br />

);<br />

QC Chart Example<br />

In the example below (which assumes you have CP and CA data), row state values are prepared ahead and<br />

passed to the Marker routine, along with matrices of coordinates.<br />

// assumes CP and CA data such as simulated below<br />

dt=New Table( "Artificial CP and CA data",

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

Saved successfully!

Ooh no, something went wrong!