Suppose i have the following sample dataset: Group Variable Value A z 2 A x 1 A y 3 B z 5 B x 2 B y 8 C z 3 C x 4 C y 5 I'm using PROC SGPANEL to produce a graph for the above data: proc sgpanel data = data1 noautolegend;
panelby Group / onepanel layout= columnlattice novarname border;
vbar Variable/ group= Group groupdisplay=cluster groupOrder = data response= Value ;
rowaxis label = 'Change(%)';
colaxis label = ' ';
run; In the result, for each group, the default arrangement of 'Variable' is in ascending order i.e. no matter how it is in the data. In the graph, 'Variable' is shown with x,y followed by z. But i need it exactly the way mentioned in the above example i.e. z, followed by x, and then followed by y. I'm using the latest version of Base SAS 9.4
... View more