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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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