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.

Chapter 16 Creating Maps 429<br />

Examples of Creating Maps<br />

2. In the Parishes file, add a new column. Name it Shape ID. Drag <strong>and</strong> drop it to be the first column.<br />

3. In the first three rows of the Shape ID column, type 1, 2, <strong>and</strong> 3 (Note - You can also use Cols >New<br />

Column > Initialize Data > Sequence Data).<br />

4. Select all three cells, right-click, <strong>and</strong> select Fill > Continue sequence to end of table.<br />

Figure 16.23 Shape ID Column in Parishes File<br />

5. Right-click on the PARISH column <strong>and</strong> select Column Info.<br />

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

7. Select Shape Name Definition.<br />

8. Click OK.<br />

9. Save the Parishes file with the following name <strong>and</strong> extension: Parishes-Name.jmp. Save the file here:<br />

– On Windows: C:\Users\\AppData\Local\<strong>SAS</strong>\JMP\Maps<br />

– On Mac: /Users//Library/Application Support/JMP/Maps<br />

10. Close the Parishes-Name.jmp file.<br />

Once the map files have been set up, you can use them. The Katrina.jmp data table contains data on<br />

Hurricane Katrina’s impact by parish. You want to visually see how the population of the parishes changed<br />

after Hurricane Katrina. Proceed as follows:<br />

11. Open the Katrina.jmp sample data table.<br />

12. Select Graph > Graph Builder.<br />

13. Drag <strong>and</strong> drop Parish into the Map Shape zone.<br />

The map appears automatically, since you defined the Parish column using the custom map files.<br />

14. Drag <strong>and</strong> drop Population into the Color zone.<br />

15. Drag <strong>and</strong> drop Date into the Group X zone.

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

Saved successfully!

Ooh no, something went wrong!