I am trying to create some plots using SGPANEL. My x-axis values range from 7 to 37 and I would like to space the axis labels because they are on top of each other and unreadable. However, when I choose "by 2" or "by 3", it does that but omits the data. How can I space the x-axis values but not lose the info associated with the missing labels?
DATA LF3; SET WORK.IMPORT;
PROC SORT; BY LAKE; RUN;
PROC SGPANEL DATA =LF3; BY LAKE;
PANELBY YEAR;
rowaxis label="PERCENTAGE";
ROWAXIS values=(0 TO 60 BY 20);
colaxis values=(7 to 37 by 2);
VBAR LENGTH/RESPONSE=PERCENTAGE;
TITLE "DISTRIBUTIONS IN PANELS";
RUN;
Hello,
Have you tried to rotate the axis labels?
Thanks,
Koen
That did not help either.
When I code the axis label 7 to 37 by 2, this is the result. It removes the data from every other value. I am not sure why it doesnt just adjust the x-axis labels.
FITPOLICY=THIN
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.