I would like to get the legend label, with "Treatement" above the 2 groups "Placebo 30 mg BID".
Attached is the 2 figures. I want the beginning one with 'Treatment' on top.
The program I have now, below, produces the latter one with 'Treatment' on the side.
proc sgplot data=all pad=(bottom=25% left=20%) uniform=all ;
where trtp~='';
*format typen type. trtan trt.;
vbar PARAM / response=percent group=trtpn groupdisplay=cluster name='a' /*BARWIDTH=0.8*/;
keylegend 'a' / location=outside position=bottom TITLE='Treatment' ;
xaxis display=(nolabel noticks);
yaxis display=all offsetmin=0.02 offsetmax=0.1 thresholdmin=1 thresholdmax=1
label="Response Rate (%)" values=(0 to 52 by 5) ;*valueattrs=(family=&font. size=8pt weight=normal);
format trtpn trt.;
run;
Thanks,
Daniel