Data visualization with SAS programming

Change the default Title and footnote in proc kde

Reply
Regular Learner
Posts: 1

Change the default Title and footnote in proc kde

Hi

 

I am working on the PROC KDE and try to produce the Kernal density estimate but unfortunately I am not able to change the default title and footnote, Please find the code below

 

I have tried with proc template and usual way of providing title and footnote.

 

Can you please guide me?

 

proc template;
     define statgraph Stat.KDE.Graphics.DensityPlot;
     dynamic _VAR1NAME _VAR1LABEL
          _VAR2NAME _VAR2LABEL;
  BeginGraph;
       EntryTitle "Produce the KDE graph with new title";
       *entrytitle _VAR1LABEL _VAR2LABEL;
     layout Overlay /
        xaxisopts=(label="DENSITY")
        yaxisopts=(label="TMAX");
        densityplot AVAL_TRT1 / kernel();
        densityplot aval_trt2/ kernel();
  EndLayout;
  EndGraph;
  end;
  run;

 

ods listing close;

     ods listing gpath="c:/test";
     ods graphics on /imagename="DensityPlot" ;
     ods escapechar = '^';
     *goptions reset=all;

*title "test" ;
*footnote j=l h=9pt font="arial" "Program: xxx.sas";

proc kde data=lab_day1 ;

   univar aval_trt1 aval_trt2 / plots=densityoverlay;
run;


ods graphics off;

ods listing;

 

 

Many Thanks

Chakra

SAS Super FREQ
Posts: 3,752

Re: Change the default Title and footnote in proc kde

Posted in reply to chakrasas

See Warren Kuhfeld's article on changing the title for ODS graphics that are created by a procedure.  The method to modify a footnote is similar.

Ask a Question
Discussion stats
  • 1 reply
  • 110 views
  • 2 likes
  • 2 in conversation