14.03.2014 Views

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - 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 10 Interactive Data Visualization 305<br />

Additional Examples Using Graph Builder<br />

You can clearly see the drop in population as a result of Hurricane Katrina. The population of the Orleans<br />

parish went from 437,186 in July 2005 to 158,353 in January 2006.<br />

Point to Specific Map Files Directly from Your Data<br />

As an example of pointing to specific map files directly from your data, say that you already have your<br />

custom map files <strong>and</strong> they are named appropriately. Your map files are US-MSA-Name.jmp <strong>and</strong><br />

US-MSA-XY.jmp. They are saved in the Sample Data folder.<br />

The PopulationByMSA.jmp data table contains population data from the years 2000 <strong>and</strong> 2010 for the<br />

metropolitan statistical areas (MSAs) of the United States. Set up the Map Role column property in the data<br />

table, as follows:<br />

1. Open the PopulationByMSA.jmp sample data table.<br />

2. Right-click on the Metropolitan Statistical Area column <strong>and</strong> select Column Info.<br />

3. Select Column Properties > Map Role.<br />

4. Select Shape Name Use.<br />

5. Next to the Map name data table, enter the following path:<br />

– On Windows: C:\Program Files\<strong>SAS</strong>\JMP\10\Samples\Data\US-MSA-Name.jmp<br />

– On Mac: /Library/Application Support/JMP/10/Samples/Data/US-MSA-Name.jmp<br />

This tells JMP where the data tables containing the map information reside.<br />

6. Next to the Shape definition column, type MSA_Name.<br />

MSA_Name is the specific column within the US-MSA-Name.jmp data table that contains the unique<br />

names for each metropolitan statistical area. Notice that the MSA_Name column has the Shape Name<br />

Definition Map Role property assigned, as part of correctly defining the map files.<br />

Note: Remember, the Shape ID column in the -Name data table maps to the Shape column in the -XY<br />

data table. This means that indicating where the -Name data table resides links it to the -XY data table, so<br />

that JMP has everything that it needs to create the map.

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

Saved successfully!

Ooh no, something went wrong!