BookmarkSubscribeRSS Feed

Allow SG annotation to work with BY groups. Currently, it ignores BY groups. It should allow you to put a BY variable in your DATA= data set and a matching BY variable in your SGANNO= data set, resulting in BY-group specific annotations for each graph. The workarounds are difficult to use (see Advanced ODS Graphics: PROC SGPLOT, BY groups, and SG annotation - Graphically Speaking (sas.com))

1 Comment
Reeza
Super User

This will not work for all use cases, but you can use the TEXT statement within SG procedures to get some annotations included depending on what exactly you're doing. 

Labeling data points, selectively or inclusively is easy with this statement.

 

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0lprj1bdrlrkgn1vmqnd7r6fnry.htm