Thank you for your reply, How can I remove the spaces on graph please inorder to cleanly display the results?
Here is my code and data
proc sgplot data =test1 dattrmap=colors pad=(bottom=5%) noautolegend noborder;
xaxis grid type=discrete discreteorder=data;
vbar year / response=rel_freq group=group_an attrid=group_an barwidth=0.9 missing;
xaxis display= (nolabel) valueattrs=(family="verdana" size=8pt) fitpolicy=rotate ValuesRotate=Vertical;
yaxis display= (nolabel) valueattrs=(family="verdana" size=8pt);
keylegend / location=outside position=bottomright across=0 title=""
valueattrs=(size=10 family="verdana") outerpad=(top=0.2cm) noborder;
run;
I will also like to set the keylegend to just be a single row, to get more space for the graph. I used across=1 but it seems this is not working due to the length of the values. Am not sure anyway if am right. I will also like to display the no_cases and percentages of each group in the corresponding bar.
I will be grateful for any help
... View more