The SAS Output Delivery System and reporting techniques

turn label on vertikal axis

Reply
N/A
Posts: 0

turn label on vertikal axis

Hi all,

I want to turn the label at vertical axis on a boxplot about 90°. I use the statements axis1 label=(a=90 r=0); vaxis=axis1
But it doesn't work.
My label looks always like this
L
A
B
E
L
N
A
M
E

I dont know what I made wrong. It should look like this: http://www.sfu.ca/sasdoc/sashtml/stat/chap18/images/boxex2d.gif

Has anybody an idea?

Thanks
Lex
Super Contributor
Super Contributor
Posts: 3,174

Re: turn label on vertikal axis

Yes, I agree - your specified AXIS1 statement as shown should generate the desired label text format. Suggest you share your code (from the SAS log generated output) for forum subscriber feedback. Also, try making changes to your AXIS1 statement to ensure it is being referenced.

Scott Barry
SBBWorks, Inc.
N/A
Posts: 0

Re: turn label on vertikal axis

I have put my log-file. I have somewhere read that SAS have a problem with fonts and so it can not rotate the char from the label. But I dont know where I must change it in my code.

666
667 proc boxplot data=C_Gtyp_A_h_Free_KW_48h;
668 title 'nur noch 48 Stunden2a';
669 plot (n_vn sum_vd sum_lct sum_ld sum_ln)*gtyp=Cage /
670 cboxes = dagr
671 cboxfill = ywh
672 cframe = vligb
673 boxstyle = schematicidfar
674 BOXWIDTHSCALE = 1
675 NLEGEND
676 notches
677 vaxis = axis1;
678 id animal;
679 run;

HINWEIS: Processing beginning for PLOT statement number 1.
HINWEIS: Es wurden 994 Beobachtungen aus der Datei WORK.C_GTYP_A_H_FREE_KW_48H. ausgelesen
HINWEIS: PROZEDUR BOXPLOT benötigt. (Gesamtverarbeitungszeit):
Echtzeit 0.09 Sekunden
CPU-Zeit


Lex
SAS Super FREQ
Posts: 8,743

Re: turn label on vertikal axis

Hi:
When I run the BOXPLOT example in Chapter 18 in SAS 9.2, using the AXIS statement and the code in the documentation, I get the same results as the picture in the documentation.

However, when I run the same example in SAS 9.1.3, I get the label as you describe. Perhaps this is one of the font improvements in SAS/Graph that is different between 9.1.3 and 9.2 -- you might wish to check with Tech Support to determine whether there is a way, in SAS 9.1.3 to get the results to look as they do in 9.2 and in the doc.

cynthia
Super Contributor
Super Contributor
Posts: 3,174

Re: turn label on vertikal axis

Sounds more like this is one of those frustrating situations where SAS R&D decides to change behavior / output from one version to the next -- something, frankly, that I do not consider to be improvement but in my opinion more like inconsistency.

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 4 replies
  • 141 views
  • 0 likes
  • 3 in conversation