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


graph.png
Super User
Posts: 11,105

Re: graph

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

SAS Super FREQ
Posts: 1,136

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

Ask a Question
Discussion stats
  • 2 replies
  • 341 views
  • 0 likes
  • 3 in conversation