Data visualization with SAS programming

Change the title of the frequency plot output by PROC FREQ

Reply
Contributor
Posts: 25

Change the title of the frequency plot output by PROC FREQ

How can you change the title of the frequency plot output by PROC FREQ?  I haven’t been able to find an option that gets rid of or.changes the “Distribution of..”  line. I've also tried just creating the frequency graphs in PROC GCHART/GPLOT where it's not a problem to specify the title. But doing that, I couldn't get the plots for the grouping variable to display in the same way as PROC FREQ, i.e. along the same axis but not in the same chart area, and one above the other (not side by side). Any suggestions?

Grand Advisor
Posts: 9,732

Re: Change the title of the frequency plot output by PROC FREQ

The title text likely comes from the ENTRYTITLE values in a BeginGraph section of a statgraph block created or modified by Proc Template. One such is

Base.Freq.Graphics.VGroupFreqChart;

where we find:

entrytitle "Distribution of " _ROWVARNAME " by " _COLVARNAME;       

         if (_CONTROL)                                                       

            entrytitle "Controlling for " _CONTROLNAMES;                     

         endif; 

Look into Proc Template on Modifying templates. Basically you make of copy a template in a different location (path) with the modified code. Have fun.

Post a Question
Discussion Stats
  • 1 reply
  • 310 views
  • 0 likes
  • 2 in conversation