Is there a way to display all the categories on the yaxis in an sgplot hbar instead of every alternate ones?
for example in the following every second make of car is skipped
proc sgplot data=sashelp.cars;
hbar make/response=invoice stat=mean;
yaxis display=all;
run;
Thanks!
Add fitpolicy=none
proc sgplot data=sashelp.cars;
hbar make/response=invoice stat=mean;
yaxis display=all fitpolicy=none;
run;
Add fitpolicy=none
proc sgplot data=sashelp.cars;
hbar make/response=invoice stat=mean;
yaxis display=all fitpolicy=none;
run;
Thanks PGStats, this works perfectly.
Regards
Aroop
Make your graph bigger.
ods graphics/height=800px;
proc sgplot data=sashelp.cars;
hbar make/response=invoice stat=mean;
yaxis display=all;
run;
Thanks KSharp for your suggestion. It might work in some cases, however, my page layout is already set, I must stay within the boundary. My apologies for not stating this constraint in my request.
Regards,
Aroop
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.