The code below:
proc sgpanel data=clinis_symp;
panelBy group/novarname;
vbarparm category=symp response=pct / groupdisplay=cluster group=symp datalabel=data_label
datalabelattrs=(size=2pt color=black);
keylegend / position=bottom title="Clinical Symptoms" noborder;
run;
Created the following graph:
Now, I'm having trouble figuring out how to remove items from the graph. I
would like to remove symp and the symptom names from under the bars so
that I only have the legend, remove the pct and, if possible make it so my data labels do not
cross over the other bars. Any assistance would be great.
Good day
Kindly try incorporate the below into your PROC SGPANEL script. I created some dummy data for the purpose of demonstration.
/*Dummy data*/
data Q01_1;
infile datalines;
input group $ symp $ pct;
datalines;
A PainA 504505
B PainB 454505
C PainC 554505
D PainC 604505
E PainD 404505
F PainA 434505
;
run;
/*Chart*/
ods graphics on / width=10in height=8in;
proc sgpanel data=Q01_1;
panelBy group/novarname;
vbarparm category=symp response=pct /
groupdisplay=cluster group=symp
datalabel datalabelattrs=(size=8) datalabelfitpolicy=rotate;
colaxis display=none;
rowaxis display=(nolabel);
keylegend / position=bottom title="Clinical Symptoms" noborder;
run;
Good day
Kindly try incorporate the below into your PROC SGPANEL script. I created some dummy data for the purpose of demonstration.
/*Dummy data*/
data Q01_1;
infile datalines;
input group $ symp $ pct;
datalines;
A PainA 504505
B PainB 454505
C PainC 554505
D PainC 604505
E PainD 404505
F PainA 434505
;
run;
/*Chart*/
ods graphics on / width=10in height=8in;
proc sgpanel data=Q01_1;
panelBy group/novarname;
vbarparm category=symp response=pct /
groupdisplay=cluster group=symp
datalabel datalabelattrs=(size=8) datalabelfitpolicy=rotate;
colaxis display=none;
rowaxis display=(nolabel);
keylegend / position=bottom title="Clinical Symptoms" noborder;
run;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.