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.

418 Creating Maps Chapter 16<br />

Background Maps<br />

x=-long*(180/constant('pi'));<br />

run;<br />

You can now import the converted file <strong>and</strong> save it as Belize-XY.jmp.<br />

The next step is to import the matching feature data set (in this case: MAPS.BELIZE2). After importing the<br />

feature data set, move the ID column to the first position in the data table. Then assign the Map Role<br />

column property to the columns that you use for place names in the Shape role of Graph Builder. To do<br />

this, right-click the top of the column <strong>and</strong> choose Column Properties > Map Role. Then choose Shape<br />

Name Definition from the drop-down box in the property definition. For MAPS.BELIZE2, use the<br />

IDNAME column. Save the feature data table as Belize-Name.jmp.<br />

To convert <strong>SAS</strong> maps, download the <strong>SAS</strong> to JMP Map Converter add-in from the JMP File Exchange. For<br />

each map, the add-in reads the data from the two <strong>SAS</strong> map tables, rearranges <strong>and</strong> formats the data <strong>and</strong> then<br />

places it into the two JMP map tables.<br />

Background Maps<br />

Adding map images <strong>and</strong> boundaries to graphs provides visual context to geospatial data. Affixing a<br />

background map generates an appealing map, providing your data a geographic context <strong>and</strong> giving you a<br />

whole new way to view your data. For example, you can add a map to a graph that displays an image of the<br />

U.S. Another option is displaying the boundaries for each state (when data includes the latitudes <strong>and</strong><br />

longitudes for the U.S.). There are different types of background maps. Some maps are built into JMP <strong>and</strong><br />

are delivered as part of the JMP install. Other maps are retrieved from an Internet source, <strong>and</strong> still other<br />

maps are user-defined.<br />

The data should have latitudinal <strong>and</strong> longitudinal coordinates. Otherwise, the map has no meaning in the<br />

context of the data. The x <strong>and</strong> y axes also have range requirements based on the type of map. These<br />

requirements are described in the following sections. Simply plot longitude <strong>and</strong> latitude on the X <strong>and</strong> Y<br />

axes, <strong>and</strong> then right-click within the graph <strong>and</strong> choose Background Map from the pop-up menu.<br />

The Background Map window shows two columns of choices: Images <strong>and</strong> Boundaries. On the left of the<br />

window you can choose from two built-in map images, or you can connect to a Web Map Service to retrieve<br />

a background image. On the right side of the window, choose to show political boundaries for a number of<br />

regions.

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

Saved successfully!

Ooh no, something went wrong!