14.03.2014 Views

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - 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.

272 Interactive Data Visualization Chapter 10<br />

Merge Variables<br />

Task<br />

Shape<br />

Add an X variable to the right of another X variable<br />

-<br />

Add a Y variable to the bottom of another Y variable<br />

Add a Y variable to the top of another Y variable<br />

Add a categorical X variable within an existing<br />

categorical X variable, nesting the axes<br />

Related Information<br />

• “Example of Adding Multiple Variables to the X or Y Zone” on page 280<br />

Merge Variables<br />

Merging variables places both variables on the same axis <strong>and</strong> creates a graph for both variables. Merging is<br />

similar to adding variables, in that a graph element is added for both variables. But adding variables<br />

maintain separate axes <strong>and</strong> scales, <strong>and</strong> merging variables use the same axis <strong>and</strong> the same scale for the<br />

variables.<br />

If you have no variables in the X or Y zone, you can drag multiple variables from the Variables list into the X<br />

or Y zone. This merges the selected variables.<br />

If you have existing variables in the X or Y zone where you want to add variables, note the following:<br />

• If you merge a categorical variable with an existing continuous variable, then the categorical variable is<br />

transformed into integer values. For example, using the Students.jmp data, if sex is merged with height,<br />

the values of sex (F <strong>and</strong> M) are transformed into 0 <strong>and</strong> 1. The transformation allows the two variables<br />

to use the same axis <strong>and</strong> scale.<br />

• If you merge a numeric variable with an existing categorical variable, the result is ordered. See “Order<br />

Variables” on page 273.

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

Saved successfully!

Ooh no, something went wrong!