BookmarkSubscribeRSS Feed
adqs
Calcite | Level 5

Dear Community,

I am wondering was the difference between the Discreteattrmap and the GraphData Statement ist? Apparently you can specify colors, linestyles and markersybols in both according to http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#a003139665.htm and http://support.sas.com/documentation/cdl/en/grstatgraph/65377/HTML/default/viewer.htm#n0b2nx83suvy1z..., however, certain commands work only with one of them?

e.g. In the bockplot statment I can't use a discreteattrmap?

Thanks for your help.

Andreas

1 REPLY 1
djrisks
Barite | Level 11

Hi Andreas,

A quick overview of the differences between Discreteattrmap and the GraphData, is that when you use the Discreteattrmap and you specify that "Males" should have Blue markers, and "Females" should have Pink markers, then that would always be the case, regardless of drop outs of the data or the sorting order of the data.

Now, the attributes that are selected when you use GraphData are based on the order of the data, and so Females, would obtain the first group GraphData1, which by default is a Blue colour, and Males would obtain the values specified in the second group which by default is a Red colour. However if there where not any Females in the dataset, then Males would now obtain the values specified in GraphData1 which is the Blue colour.

With attributes maps, you need to use the Group = statement to assign the map. The Blockplot has not got the group statement so I guess that is why you can not use attribute maps with that plot.

Thanks.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1439 views
  • 0 likes
  • 2 in conversation