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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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