The SAS Output Delivery System and reporting techniques

remove some headers in qq plot from proc univariate

Reply
N/A
Posts: 0

remove some headers in qq plot from proc univariate

Hello dears SAS users
I have the following problem
when i ran this code:
proc sort data=sashelp.class out=class;
by sex;
run;
ods noproctitle;
ods rtf file="G:\Assens\prog_autres\forum_sas\qqplot.rtf";
ods graphics on;
ods select qqplot;

proc univariate data=class;
var weight;
by sex;
qqplot / normal(mu=est sigma=est);
run;

ods graphics off;
ods rtf close;

There is written before my qq plot,
Variable: Weight
How can i do to remove it ?
Is there a general options to remove this ?
Thank you.
SAS Super FREQ
Posts: 8,868

Re: remove some headers in qq plot from proc univariate

Posted in reply to deleted_user
Hi:
I'm not exactly sure how UNIVARIATE manages it, but it seems that the "Variable: xxxxx" information is being sent by PROC UNIVARIATE as though it were a procedure title. As you observe from your code, however, using ODS NOPROCTITLE does not suppress this string.

You can "disappear" the "Variable: xxxxx" string by turning the foreground and background color to be the same value -- in the code below, I'm changing them both to white so they disappear against the RTF page, when the RTF file is opened in Microsoft Word.

I thought there might be a table (or graph) template method to get rid of the string, but I could not find it. Perhaps one of the ODS developers will have a better idea of how to approach this task.

cynthia
[pre]
proc sort data=sashelp.class out=class;
by sex;
run;

ods path work.temp(update) sashelp.tmplmst(read);

proc template;
define style styles.nopt;
parent=styles.rtf;
class ProcTitle /
background=white
foreground=white;
end;
run;

ods listing close;
ods noproctitle;
ods rtf file="c:\temp\qqplotf.rtf" style=styles.nopt;
ods graphics on;
ods select qqplot;
proc univariate data=class;
var weight;
by sex;
qqplot / normal(mu=est sigma=est);
run;

ods graphics off;

ods _all_ close;

[/pre]
N/A
Posts: 0

Re: remove some headers in qq plot from proc univariate

Posted in reply to deleted_user
Thank you
Ask a Question
Discussion stats
  • 2 replies
  • 233 views
  • 0 likes
  • 2 in conversation