with the following code, the chart displays a label " p-chart for yes_answer1" at the top, under the main chart title.
I have two questions about that:
title "P-chart of Patient Counseling by Quarter";
proc shewhart data=tmp2;
pchart yes_answer1*quarter/ markers subgroupn = total_count1
nohlabel ;
LABEL yes_answer1 ="Proportion of pts counselled"; /*this would be for y axis and no issue with this*/
run; title;
Start with
ods graphics off;
and use regular TITLE statement.
When using ODS Graphics with PROC SHEWHART
ods graphics on;
(the default)
, you will not be able to use a regular TITLE statement to add a title to the graph.
However, you can use the ODSTITLE option on the PCHART statement, such as:
pchart &v * _YEAR_MONTH / subgroupn = population
ODSTITLE='My New Shewhart Title'
Koen
Start with
ods graphics off;
and use regular TITLE statement.
When using ODS Graphics with PROC SHEWHART
ods graphics on;
(the default)
, you will not be able to use a regular TITLE statement to add a title to the graph.
However, you can use the ODSTITLE option on the PCHART statement, such as:
pchart &v * _YEAR_MONTH / subgroupn = population
ODSTITLE='My New Shewhart Title'
Koen
With the first approach (ods graphics off; ), I will get this warning:
“WARNING: Traditional graphics are not available because either SAS/GRAPH is not licensed for your system, or the license has expired.”
So, I don’t have access to that.
Hello,
What SAS version are you using? Is it SAS 9.4 or SAS Viya?
Submit
%put &=SYSVLONG4;
to find out (see LOG-screen for result).
To see the expiration dates for your SAS modules, you can submit:
When you cannot turn ODS GRAPHICS ... OFF ,
you can still use the ODSTITLE= option behind the forward slash on a pchart (p-chart) statement to get what you want.
Koen
My SAS is 9.4 and I have a valid license, I can use the ODSTITLE= option behind the forward slash on a chart (p-chart)
I was just wondering why I cannot turn ODS GRAPHICS ... OFF. Thanks
When I submit
proc setinit; run;
I get
---SAS/GRAPH 14JUL2024 (CPU A)
When I submit
proc product_status; run;
I get
For SAS/GRAPH ... Custom version information: 9.4_M8
M8 = Maintenance Release 8 (another maintenance release will do as well of course). M6 or above is preferred though.
I think you need to see something similar in order to be able to turn ods graphics ... off .
Koen
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.