BookmarkSubscribeRSS Feed
Carol1
Calcite | Level 5

I am running SAS 9.3 and try to get the title centered.

I have very large formatted values on the y-axis, so the data area is very small on the right side.

If I use

title j=c "titletext"

 

it does not happen. Title is only centered above the graph box.

 

If I use

title j=l "titletext"

the title appears left bound.

 

 

Thanks for your help,

Carol

3 REPLIES 3
DanH_sas
SAS Super FREQ

Starting in SAS 9.4, "j=c" gives you what you want.

 

title "titletext";  --- centers over the data area

title j=c "titletext";  --- centers in the graph

Carol1
Calcite | Level 5

Dear Dan!

Thank you for this quick answer. But is there any way do to it in SAS 9.3?

 

 

Carol1
Calcite | Level 5

I just found out how to center the title over graph area: if it is too long to fit over the data area it will suddenly be centered over the graph area... so adding blanks can help forcing this centering.

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
  • 3 replies
  • 1570 views
  • 0 likes
  • 2 in conversation