Data visualization with SAS programming

No stacking of vbars in sgplot / sgpanel

Reply
Contributor
Posts: 29

No stacking of vbars in sgplot / sgpanel

in sgplot or panel the line:

vbar col_attrib / stat=mean response=data_numeric group=mygrp;

will always stack the bars in mygrp on top of each other for each col_attrib.

Is there a switch to have them next to each other? Or do I have to dive into proc template to do that? The documentation just says for the GROUP=
"specifies a variable that is used to group the data. The plot elements for each group value are automatically distinguished by different visual attributes."
Post a Question
Discussion Stats
  • 0 replies
  • 108 views
  • 0 likes
  • 1 in conversation