Data visualization with SAS programming

Manipulate axis title in graph

Reply
Contributor
Posts: 34

Manipulate axis title in graph

Hi all,

I have this graph created by this code:

 

PROC SGPLOT DATA = new;

VBAR country / GROUP = model;

RUN;

 

How can I change the direction of the Y-axis title from vertical to horizontal?

Trusted Advisor
Posts: 1,128

Re: Manipulate axis title in graph

try the yaxis labelpos option as below

PROC SGPLOT DATA = new;
VBAR country / GROUP = model;
yaxis LABELPOS=CENTER ;
RUN;
Thanks,
Jag
Contributor
Posts: 34

Re: Manipulate axis title in graph

Thanks Jag. I tried your code but it did not make a difference. What I need is to make the alignment of the Y-axis (the word "frequency") horizontally instead of vertically.
SAS Super FREQ
Posts: 3,475

Re: Manipulate axis title in graph

I think JAG meant to say

yaxis LABELPOS=TOP;

Contributor
Posts: 34

Re: Manipulate axis title in graph

yaxis LABELPOS=TOP ;

 

I used the above statement, it worked but still I need to make a space between the word "frequency" and the axis, not to be exactly above the axis. Need to make space betwee the two.

Contributor
Posts: 34

Re: Manipulate axis title in graph

This is the graph I am looking for with a space betwee the word "frequency" and the Y-axis.

Contributor
Posts: 34

Re: Manipulate axis title in graph

g.jpg

Ask a Question
Discussion stats
  • 6 replies
  • 90 views
  • 1 like
  • 3 in conversation