14.03.2014 Views

Using JMP - SAS

Using JMP - SAS

Using JMP - 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.

440 Formula Functions Reference Appendix B<br />

Row State Functions<br />

Hue State<br />

Returns the color from the <strong>JMP</strong> hue map that corresponds to its integer argument. <strong>JMP</strong> hues are numbered<br />

0 through 11 but larger integers are treated as modulo 12. The Hue State function does not map to black,<br />

gray, or white. A hue of zero maps to red and hue of 11 maps to magenta. The formula on the left in<br />

Figure B.16 assigns row state colors in a chromatic spread based on the value of z. The Hue State function<br />

used with a row state data type column.<br />

Shade State<br />

Assigns five shade levels to a color or hue. A shade of –2 is darkest and shade of +2 is lightest. A shade of zero<br />

is a pure color. The formula on the right in Figure B.16 assigns shade values based on the value of z.<br />

Figure B.16 Examples of Hue and Shade Functions<br />

To assign all shades of all the colors in the colors palette, you need to use the Hue State and Shade State<br />

assignments together. The formula in Figure B.17 uses the Combine States function described at the<br />

beginning of this section. The first argument in the Combine States function is the Hue State formula<br />

shown previously, and the second argument is the Shade State formula. In addition, the Marker State<br />

function with an argument of 2 assigns the X marker to each row, and the Selected State function with an<br />

argument of 1 selects each row.<br />

Figure B.17 Combine States Example For <strong>Using</strong> Both Hue State and Row State<br />

Excluded, Hidden, Labeled, and Selected<br />

Accepts a row state expression argument (row state column or row state constant) that evaluates as either 1<br />

or 0 (true or false). These characteristics are inactive by default. Often, the Row() function is the argument,<br />

which detects the active row state condition of each row. For example, in Figure B.18, the formula assigns<br />

99 whenever a row is actively selected, and 0 otherwise. Note that this formula is used in a column that has<br />

a numeric data type.

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

Saved successfully!

Ooh no, something went wrong!