Data visualization with SAS programming

PROC SGPANEL

Reply
Contributor gsk
Contributor
Posts: 23

PROC SGPANEL

 how.JPG

 

I want to draw this graph in a way that there are both red and blue bars right next to each other for each Week (not on the top like that). Below is my code: 


proc sgpanel data=visit_bp pctlevel=graph;
  panelby VSTESTCD / columns=2; 
  vbar visit / stat=percent group= arm;
run;

 

Visit: Week 8, Week 16, Week 24, Week 32

ARM: ECHO MAX, Placebo 

VSTESTCD: DIABP, SYSBP 

 

Tried to figure this out for a really long time. Any help will be much appreciated. 

Esteemed Advisor
Posts: 5,391

Re: PROC SGPANEL

Use option GROUPDISPLAY=CLUSTER in the vbar statement.

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