BookmarkSubscribeRSS Feed
moreka
Obsidian | Level 7

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?

OSZAR »
1 REPLY 1
ballardw
Super User

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.

OSZAR »

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 2772 views
  • 0 likes
  • 2 in conversation
OSZAR »