Hi All, I am trying to create side by side violin plots (with 2 plots representing percentages of 2 groups) , with a boxplot overlay (the boxplot within showing mean, IQR and confidence intervals). Although I've been able to create the violin plot on its own, I am not sure how to create the boxplot. I have a dataset with a continuous variable (percentage) and binary variable (disease). My original code, for the violin plots only, is below: proc sort data = adherence out=sorted; by percentage; run; proc kde data = sorted; by disease; univar percentage / plots=none out = percent_dens; run; data plot; set percent_dens; mirror=-density; run; proc sgpanel data=plot nocycleattrs; panelby DisType / layout=columnlattice onepanel novarname noborder colheaderpos=bottom; band y=value upper=density lower=mirror / fill outline; rowaxis label="MY GRAPH" grid; colaxis display=none; run; Is there any way to do this on SAS? At the very least, I would want to include more detail to my violin plot, such as mean, median, and IQR (similar to what a boxplot can tell us....but on the violin plot). Is this an alternate, more feasible solution? I would really appreciate if someone could help me out with this problem. There does not seem to a wealth of knowledge on the internet, as the use of violin plots seems to be fairly new (?). Also, I am a novice at using SAS, so any comments or tips would be helpful!! Many thanks! Christina
... View more