SAS statistical analysis programming
bar chart and its properties.
proc sgplot data=Bookdata.IUPASBasic
vbar metro / response=Payment stat=median GROUPDISPLAY=stack;
/ stat=percent shows the percent.
/ response = comparative numerical variable
Grouped HBAR VBAR
Group = option allows for each level the charting variable to be broken down across levels of specified variable.
hbar MortgagePayment / group=metro
Group = variable <treated as a categorical >
the placement by default occurs to be stack. But we can check it using
GroupDisplay = option` options are stack, cluster (side by side).