Sample 25574: Emphasizing map areas using PROC GPROJECT
This sample is from the "SAS/GRAPH Software: Reference, Version 8", Volume 2, Chapter 23.
For additional information on the sample refer to this book.
/*+-------------------------------------------------------------+
| S A S S A M P L E L I B R A R Y |
| |
| NAME: GPJEMPHS |
| TITLE: GPJEMPHS-Emphasizing Map Areas |
| PRODUCT: GRAPH |
| SYSTEM: ALL |
| KEYS: GRAPHICS GOPTIONS GMAP GPROJECT MAPS PATTERN |
| PROCS: GMAP GPROJECT |
| DATA: EXTERNAL |
| |
| SUPPORT: GRAPHICS STAFF UPDATE: |
| REF: SAS/GRAPH REFERENCE GUIDE |
| MISC: EDIT AND UNCOMMENT THE LIBNAME STATEMENTS |
| IF THE LIBREFS HAVE NOT BEEN DEFINED. |
+-------------------------------------------------------------+*/
/* Define the libref maps */
*libname maps 'SAS-MAPS-library';
/* Set the graphics environment */
goptions reset=all gunit=pct border cback=white
colors=(black blue green red)
ftext=swiss htitle=6 htext=3;
/* Create reduced continental U.S. map data set */
/* and remove Alaska, Hawaii, and Puerto Rico */
data us48;
set maps.states;
if state ne 2 and state ne 15 and state ne 72;
if density<3;
run;
/* Project map onto plane centered in the Pacific */
proc gproject data=us48
out=skew
project=gnomon
polelong=160
polelat=45;
id state;
run;
/* Define title and footnote for map */
title 'United States Map';
footnote j=r 'GPJEMPHS ';
/* Define pattern characteristics */
pattern value=mempty repeat=49 color=blue;
/* Show projected map */
proc gmap map=skew data=skew all;
id state;
choro state / nolegend;
run;
quit;

This example uses the gnomonic projection method to create a map in which the east coast of the United States appears disproportionately large compared to the west coast.
| Type: | Sample |
| Topic: | Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Types ==> Maps SAS Reference ==> Procedures ==> GMAP SAS Reference ==> Procedures ==> GPROJECT
|
| Date Modified: | 2005-08-27 03:03:25 |
| Date Created: | 2005-05-23 14:16:29 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | 8 TS M0 | n/a |