I am running a paneled and grouped boxplot and want to summarize the mean and standard deviation as a xaxis table below the plot. I have the below code currently: proc sgpanel data=data; panelby panel/ layout=columnlattice onepanel uniscale=row novarname; vbox var/ category=location group=type nooutliers notches ; rowaxis values=(0 to 18 by 2) grid; colaxis display=(nolabel); colaxistable meanvar/ label="Mean" stat=median class=type classdisplay=cluster valueattrs=(size=5) ; keylegend / title=""; run; Basically, when I try to run the colaxistable with var as the variable and stat=mean, it is putting too many decimals, so instead I created a separate table with the mean and standard deviation (the standard deviation option is not available for colaxistable anyway) for each location, type group and merged it back in to the original data. Since I have multiple observations for var for each panel-location-type, I think it is giving me a sum in the graph, so I put stat=median as a workaround to give me the actual value I calculated but its still summing them. The other issue is the group variable, I want the value to be under the boxplot for the correct panel-category-group and it wasnt doing that, so I put the group variable as the colaxistable class and groupdisplay=cluster, but the order is wrong. Anyone have any tips or workaround?
... View more