Help using Base SAS procedures

Need help proc univariate cdfplot overlay title

Reply
New Contributor
Posts: 2

Need help proc univariate cdfplot overlay title

Please help me to get rid or overwrite the title "Cumulative Distribution Function for x".

I have been struggling for last 24 hours trying all the option.

Below is the example:

data test;

        drop i;

        do group='A','B';

          do i=1 to 100;

            if group='A' then x=25 + 8*rannor(2345);

              else x=5 + 8*rannor(12345);

            output;

          end;

        end;

      run;

       title 'Comparative plots';

       ods graphics on;

      proc univariate data=test noprint;

        var x;

        class group;

        cdfplot x/overlay;

      run;

      quit;

      title;

Respected Advisor
Posts: 4,919

Re: Need help proc univariate cdfplot overlay title

Posted in reply to FrancisDsa

With SAS 9.3 TS1M2, you can use options ODSTITLE= and ODSTITLE2= on the CDFPLOT statement

cdfplot x/overlay odstitle="My Title";

PG


CDFPlot1.png
PG
Super User
Posts: 19,772

Re: Need help proc univariate cdfplot overlay title

Posted in reply to FrancisDsa

If this is a one-off I'd modify the graph using ODS Graphics editor. If you need it done automagically then I think you may need to modify the template code.

I thought there was an option to change some of that but can't seem to find it. You may want to post this in a SAS Graphics Forum to get a better response.

Ask a Question
Discussion stats
  • 2 replies
  • 514 views
  • 0 likes
  • 3 in conversation