Help using Base SAS procedures

animating PROC GMAP, constant legend

Reply
Occasional Contributor A_S
Occasional Contributor
Posts: 12

animating PROC GMAP, constant legend

[ Edited ]

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

Super User
Posts: 11,343

Re: animating PROC GMAP, constant legend

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.

Ask a Question
Discussion stats
  • 1 reply
  • 127 views
  • 0 likes
  • 2 in conversation