Data visualization with SAS programming

graph

Reply
Frequent Contributor
Posts: 115

graph

Hi,

Could you please help me to write the proc graph code for below scenario, i want use same colors and legents as attached

Attachment
Grand Advisor
Posts: 9,748

Re: graph

It is hard to write code without having the data structure at least.

SAS Super FREQ
Posts: 1,044

Re: graph

I suggest you use SGPLOT procedure.  Here is some starter code:

proc sgplot data=yourdata;

  vbar category_var / respone=response_var group=group_var groupdisplay=cluster;

run;

There are many examples of bar charts in this blog:  Graphically Speaking - Data Visualization with a focus on SAS ODS Graphics

Post a Question
Discussion Stats
  • 2 replies
  • 275 views
  • 0 likes
  • 3 in conversation