BookmarkSubscribeRSS Feed
csetzkorn
Lapis Lazuli | Level 10

I am using this code:

 

PROC SGPANEL data=GreatData;
	panelby Cat / COLUMNS= 10 NOVARNAME;
	vbox BlaDiBla / CATEGORY=Bla NOOUTLIERS;
	rowaxis min=0 max=100;
RUN;

but would like SAS to display my x axis label turned by 90 degrees - i.e. vertically.

 

I searched and tried to digest the doc and believe it has to do with this bit:

 

rowaxis min=0 max=100 valueattrs=;

but did not get anything to work. Thanks.

 

Btw, can anyone please recommend a good book discussing everything related to 'graphing in SAS' like the above? Thanks!

 

 

5 REPLIES 5
PeterClemmensen
Super User

SAS 9.4m5 does this pretty easily with PROC SGPLOT as described in the article New Features with SAS 9.40 M5, but i dont think it applies to PROC SGPANEL.

 

Have not tried this, but perhaps use the LABELPOS=DATACENTER option in the ROWAXIS statement 🙂

 

As for a recommendation, I recommend Statistical Graphics Procedures By Example.

 

csetzkorn
Lapis Lazuli | Level 10
Thanks your suggestion does not work.
ballardw
Super User

@csetzkorn wrote:
Thanks your suggestion does not work.

When it comes to SG graphics procedures you really need to tell us which version of SAS you are using as every release since 9.1.3 has had pretty major changes in the features available.

 

Rowaxis controls the appearance of the Yaxis (the row component).

 

Colaxis controls the Xaxis. In SAS 9.4 I have the colaxis option Valuesrotate= vertical to rotate the xaxis values.

Jay54
Meteorite | Level 14

To maximize your chance of getting quick help, and to make it easier for other people to help, please always include full code with sample data that others can run to see what is happening.  Also always include the release version of your SAS software.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1455 views
  • 2 likes
  • 5 in conversation