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?

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.

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
  • 2222 views
  • 0 likes
  • 2 in conversation