Graphics Programming

Data visualization using SAS programming, including ODS Graphics and SAS/GRAPH. Charts, plots, maps, and more!
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ubai
Quartz | Level 8

Hi everyone,

 

I would like to make an alluvial diagram in SAS. I searched google and found only one link, which can be improved I guess. I though I can ask the experts. @WarrenKuhfeld, Sorry Sanjay I couldn't tag you here.

 

Here is the one link I found:

https://www.linkedin.com/pulse/alluvial-diagram-using-sas-ods-graphics-dmitry-shopin

 

I have also noticed that this diagram can be make using SAS Visual Analytics, but I don't have this unfortunately. 

I would like to create something like this, although I know it can not be an interactive graph in SAS:

https://vizhub.healthdata.org/fgh/

 

Any help, ideas, codes please? I think this is a worth of a post in the Graphically Speaking Blog.

 

Ubai

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisBrooks
Ammonite | Level 13

This is, I think, what is also called a Sankey Diagram - to be honest I don't like them as I fail to see how anyone can make any sense of the multitude of crossed lines but you might find this helpful from Github https://github.com/RhoInc/sas-sankeybarchart

View solution in original post

4 REPLIES 4
ChrisBrooks
Ammonite | Level 13

This is, I think, what is also called a Sankey Diagram - to be honest I don't like them as I fail to see how anyone can make any sense of the multitude of crossed lines but you might find this helpful from Github https://github.com/RhoInc/sas-sankeybarchart

WarrenKuhfeld
Ammonite | Level 13

I don't have anything to add beyond what has already been posted.  I know Shane Rosanbalm from Rho who wrote the code to which @ChrisBrooks referred you. Shane is an excellent ODS Graphics programmer, so I would follow his lead.

Norman21
Lapis Lazuli | Level 10

"...to be honest I don't like them as I fail to see how anyone can make any sense of the multitude of crossed lines ..."

 

Actually, I think this is a way of making an important point - the "trends" in stacked bar charts over time are due to complex movements of individuals between categories, something which many people do not appreciate.

Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

Ubai
Quartz | Level 8

Thank you both. I'll use it.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 3471 views
  • 4 likes
  • 4 in conversation