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
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.