- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
This is the tail end of a program that colors states into two groups and also creates a filled circle around the city of Seattle. It creates a legend for the two groups of states, however, I would like to add the color for the circle around Seattle to the legend, which comes from the ANNO dataset. Is there a way to tell SAS to include that in the legend?
/* Separate projected data into map and anno datasets */
DATA usmap anno;
SET us48_proj;
IF flag=1 THEN OUTPUT anno;
ELSE OUTPUT usmap;
RUN;
proc format;
value TEC_NAME
1='Group 1'
2='Group 2'
;
TITLE1 "Example";
pattern1 value=msolid color=Yellow;
pattern2 value=msolid color=Brown;
PROC GMAP DATA=usmap MAP=usmap ANNO=anno;
ID ID;
CHORO cat / levels=11 COUTLINE=black MISSING;
FORMAT cat TEC_NAME.;
RUN; QUIT;
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I don't know of a built-in way to add extra things to the official legend in SAS/Graph GMap. I do what you're doing - annotate the extra stuff. Here's an example:
https://robslink.com/SAS/democd104/covid_uscounty_snapshots.sas
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I don't know of a built-in way to add extra things to the official legend in SAS/Graph GMap. I do what you're doing - annotate the extra stuff. Here's an example:
https://robslink.com/SAS/democd104/covid_uscounty_snapshots.sas
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
If you use an xsys and ysys value of '3', then the coordinate system for anno is 0-100 in each direction.