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 413<br />

Example of Creating A Map in Graph Builder<br />

The two files are implicitly linked by a Shape ID column. For example:<br />

• The World-Name.jmp file contains the exact names <strong>and</strong> abbreviations for different countries <strong>and</strong><br />

regions throughout the world<br />

• The World-XY.jmp file contains the latitude <strong>and</strong> longitude numbers for each country, by Shape ID<br />

Note: If JMP does not recognize the names in your data, check the built-in map files for the spelling that<br />

JMP recognizes. For example, United Kingdom is a country name, but not Great Britain.<br />

Custom Map Files<br />

You can create your own map files by following the same pattern as the built-in files. To add your own map<br />

files, you need two things: a series of XY coordinates for the vertices of the polygons that describe the shape,<br />

<strong>and</strong> a set of names for each polygon. Data <strong>and</strong> shape attributes are required to map custom shapes so you<br />

can add your own shapes to JMP. There are two common sources for data like this: ESRI ® shapefiles <strong>and</strong><br />

<strong>SAS</strong>/GRAPH ® map data sets.<br />

In order for JMP to automatically find your files, place them in the following directory:<br />

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

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

Or, you can link the map files to your data files explicitly with the Map Role column property.<br />

Note the following when creating map files:<br />

• Each set of map files that you create must contain a -Name file <strong>and</strong> a -XY file.<br />

• The first column in both files must be the ascending, numeric Shape ID variable. The -Name file can<br />

contain any other columns. The shapes are built by rows. The XY coordinates have to go around the<br />

shape rather than just define the convex hull of the shape.<br />

• For the Map Role column property, columns that are marked with the Shape Name Definition are<br />

searched for shape identification <strong>and</strong> must contain unique values.<br />

• If you import an ESRI ® SHP file, it is opened in the correct format. -Name files commonly have a .dbf<br />

extension. For more information, see “ESRI® Shapefiles” on page 416.<br />

• <strong>SAS</strong>/GRAPH ® software includes a number of map data sets that can be used with JMP. For more<br />

information, see “<strong>SAS</strong>/GRAPH® Map Data Sets” on page 417.<br />

You might want to create choropleth maps of other non-geographic regions (for example, a floor of an office<br />

building). Simply, add the two shape files for your non-geographic space. If you do not have XY<br />

coordinates, but you do have a graphic image of the space, you can use the Custom Map Creator add-in for<br />

JMP. With this add-in, you can trace the outlines of the space <strong>and</strong> JMP creates the -XY <strong>and</strong> -Name files for<br />

you. You can download this add-in from the JMP File Exchange page.

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

Saved successfully!

Ooh no, something went wrong!