BookmarkSubscribeRSS Feed
chakrasas
Calcite | Level 5

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

1 REPLY 1
Rick_SAS
SAS Super FREQ

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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1655 views
  • 2 likes
  • 2 in conversation