BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
vicdicenzo
Obsidian | Level 7

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;

1 ACCEPTED SOLUTION

Accepted Solutions
5 REPLIES 5
sbxkoenk
SAS Super FREQ

Hello,

 

Have you tried to rotate the axis labels?

VALUESROTATE=DIAGONAL | DIAGONAL2 | VERTICAL

 

Thanks,

Koen

vicdicenzo
Obsidian | Level 7

That did not help either.

vicdicenzo
Obsidian | Level 7

STB LF Plot18.jpeg

STB LF Plot36.jpeg

vicdicenzo
Obsidian | Level 7

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.

 

STB LF Plot54 (1).jpeg

vicdicenzo
Obsidian | Level 7

FITPOLICY=THIN

 

 

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1162 views
  • 1 like
  • 2 in conversation