DATA Step, Macro, Functions and more

How to apply a horizontial(xaxis) axis Label

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 16
Accepted Solution

How to apply a horizontial(xaxis) axis Label

I am attempting to add a horizontial axis to my control chart with no luck.  I have tried the below syntax:

TITLE "Average Balance Outliers -"; %Let Heading=RecCd;

proc shewhart data=data.MASTER2;by recCd;  xchart _SUBX_* MONYEAR /sigmas=2;

axis

label=(h=1.3 a=90 "Tobacco Consumption (Tons)")

color=red w=10 minor=(number=5);run;

Please advise.


Accepted Solutions
Solution
‎01-26-2015 05:14 PM
Super User
Posts: 11,343

Re: How to apply a horizontial(xaxis) axis Label

Posted in reply to thomask23

Define the AXIS statement before the procedure:

axis1

label=(h=1.3 a=90 "Tobacco Consumption (Tons)")

color=red w=10 minor=(number=5);

in the procedure

/sigmas=2 haxis=Axis1;

View solution in original post


All Replies
Solution
‎01-26-2015 05:14 PM
Super User
Posts: 11,343

Re: How to apply a horizontial(xaxis) axis Label

Posted in reply to thomask23

Define the AXIS statement before the procedure:

axis1

label=(h=1.3 a=90 "Tobacco Consumption (Tons)")

color=red w=10 minor=(number=5);

in the procedure

/sigmas=2 haxis=Axis1;

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 138 views
  • 0 likes
  • 2 in conversation