Hi all,
I am creating 2 vbars for actual and predicted sales using proc sgplot, I have the code and able to get perfect graph but it uses common y-axis.
I want different y-axis for actual and predicted.
Thanks for all your help.
Regards,
Amit
code:
data test;
set sashelp.prdsal2 (keep= monyr actual predict year);
where year eq 1995;
run;
proc summary data=test missing nway;
class monyr;
var actual predict;
output out=summary (drop= _type_ _freq_ ) sum=;
run;
proc sgplot data=summary;
vbar monyr / response=actual
fillattrs=graphdata2 transparency=.65
legendlabel="Actual Sales" name="Actual";
vbar monyr / response=predict
barwidth=.5 fillattrs=graphdata2 transparency=.25 name="Predict"
legendlabel="Predicted Sales" name="Predict";
keylegend "Actual" "Predict";
xaxis label=" " grid;
yaxis label=" " discreteorder=data;
run;