BookmarkSubscribeRSS Feed
A_S
Fluorite | Level 6 A_S
Fluorite | Level 6

Dear SAS Communities,

 

I am using PROC GMAP to create animated CHORO maps showing how county statistics change over time.

I used PATTERNn to determine the colors and PROC FORMAT to establish the levels.

I used a FORMAT statement in PROC GMAP to connect data to region color.

 

Here is my problem:

When a level is absent, the map assigns the next present level the missing level's color. This gives my animation inconsistent colors.

 

Example:

levels: low medium high

colors: blue purple red

If the data for the animation has levels low, medium, high; then the colors will be blue, purple, red.

If the data for the animation has levels low, high; then the colors will be blue, purple (I want blue red).

 

Thank you,

Aaron

2 REPLIES 2
ballardw
Super User

It may help to show your Proc Gmap code. There are several ways to specify levels in the Choro such as MIDPOINTS or Discrete and such.

 

Also whether you use BY group may have some bearing.

 

enough example data to make a couple of maps to demostrate would be helpful.

GraphGuy
Meteorite | Level 14

If you're using gmap, choro, with a by-statement (such as 'by year'), I would recommend using the 'uniform' option.

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 820 views
  • 0 likes
  • 3 in conversation