Suppose that you have downloaded Esri shapefiles from the Internet and you want to use them as your map files in JMP. The shapefiles are named Parishes.shp and Parishes.dbf. These files contain coordinates and information about the parishes (or counties) of Louisiana.
Note: Pathnames in this section refer to the “JMP” folder. On Windows, in JMP Pro, the “JMP” folder is named “JMPPro”. In JMP Shrinkwrap, the “JMP” folder is named “JMPSW”.
Save the .shp file with the appropriate name and in the correct directory, as follows:
1.
|
In JMP, open the Parishes.shp file from the following default location:
|
–
|
On Windows: C:/Program Files/SAS/JMP/13/Samples/Import Data
|
–
|
On Macintosh: /Library/Application Support/JMP/13/Samples/Import Data
|
2.
|
–
|
On Windows: C:/Users/<user name>/AppData/Roaming/SAS/JMP/Maps
|
–
|
On Macintosh: /Users/<user name>/Library/Application Support/JMP/Maps
|
3.
|
Close the Parishes-XY.jmp file.
|
Perform the initial setup and save the .dbf file, as follows:
1.
|
Open the Parishes.dbf file from the following default location:
|
–
|
On Windows: C:/Program Files/SAS/JMP/13/Samples/Import Data
|
–
|
On Macintosh: /Library/Application Support/JMP/13/Samples/Import Data
|
2.
|
3.
|
In the first three rows of the Shape ID column, type 1, 2, and 3 (Note - You can also use Cols > New Columns > Initialize Data > Sequence Data).
|
4.
|
Select all three cells, right-click, and select Fill > Continue sequence to end of table.
|
5.
|
6.
|
Select Column Properties > Map Role.
|
7.
|
Select Shape Name Definition.
|
8.
|
Click OK.
|
9.
|
Save the Parishes file with the following name and extension: Parishes-Name.jmp. Save the file here:
|
–
|
On Windows: C:/Users/<user name>/AppData/Roaming/SAS/JMP/Maps
|
–
|
On Macintosh: /Users/<user name>/Library/Application Support/JMP/Maps
|
10.
|
Close the Parishes-Name.jmp file.
|
Once the map files have been set up, you can use them. The Katrina.jmp data table contains data on Hurricane Katrina’s impact by parish. You want to visually see how the population of the parishes changed after Hurricane Katrina. Proceed as follows:
1.
|
2.
|
3.
|
Select Shape Name Use.
|
4.
|
Click the Map name data table button and browse to select Parishes-Name.jmp, which you previously created.
|
5.
|
In Parishes-Name.jmp, the PARISH column has the Shape Name Definition Map Role property assigned. The column consists of map shape data for each parish.
6.
|
Select Graph > Graph Builder.
|
7.
|
The map appears automatically, since you defined the Parish column using the custom map files.
8.
|
9.
|
10.
|
Suppose that you already have your custom map files and they are named appropriately. Your map files are US-MSA-Name.jmp and US-MSA-XY.jmp. They are saved in the sample data folder.
The PopulationByMSA.jmp data table contains population data from the years 2000 and 2010 for the metropolitan statistical areas (MSAs) of the United States. This example shows how the data table has been set up to create a map.
1.
|
2.
|
3.
|
Select Column Properties > Map Role.
|
4.
|
Select Shape Name Use.
|
5.
|
6.
|
MSA_Name is the specific column within the US-MSA-Name.jmp data table that contains the unique names for each metropolitan statistical area. Notice that the MSA_Name column has the Shape Name Definition Map Role property assigned, as part of correctly defining the map files.
Note: Remember, the Shape ID column in the -Name data table maps to the Shape ID column in the -XY data table. This means that indicating where the -Name data table resides links it to the -XY data table, so that JMP has everything that it needs to create the map.
7.
|
Click OK.
|
Once the Map Role column property has been set up, you can perform your analysis. You want to visually see how the population has changed in the metropolitan statistical areas of the United States between the years 2000 and 2010.
1.
|
Select Graph > Graph Builder.
|
2.
|
Since you have defined the Map Role column property on this column, the map appears.
3.
|
4.
|
Select the Magnifier tool to zoom in on the state of Florida.
|
5.
|
Select the Arrow tool and click on the red area.
|
6.
|
Select the Magnifier tool and hold down the Alt key while clicking on the map to zoom out.
|
7.
|
Select the Magnifier tool and zoom in on the state of Utah.
|
8.
|
Select the Arrow tool and click on the area that is slightly red.
|