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
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.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.