BookmarkSubscribeRSS Feed
Agent1592
Pyrite | Level 9
	ods html file="Figure1";
	title " ";
	title2 " ";
	title3 "Title I would like to increase the size of the font" ;
	proc sgplot data=have;
	  xaxis type=discrete valueattrs=(color=black size=12pt)  min=0 max=20;
	  yaxis grid label="IMPRET/CXRET12M" valueattrs=(color=black size=12pt) max=&maxval min=&minval;
	  series x=var3 y=var1/ markers markerattrs=(symbol=CircleFilled color=blue) ;
	  series x=var3 y=var1/ markers markerattrs=(symbol=TriangleFilled color=red) ;
	run;
	title;
	title2;
	title3;
	ods html close;

I am trying to increase the size of the font of the title and the legend. Also the text of the variables on the X and y axis. Can someone please help.

1 REPLY 1
Reeza
Super User

Check the docs for Title statements, example 3 in particular. 

http://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.3&docsetId=lestmtsglobal&docsetTarget...

 

 

    title3 font='Times New Roman' height=16pt "Title I would like to increase the size of the font" ;
    proc sgplot data=sashelp.class;
     scatter x=height y=weight / group=sex;
    run;
    title3;

 

 

Also note that:

Using TITLE without arguments cancels all existing titles.

 

 


@Agent1592 wrote:
	ods html file="Figure1";
	title " ";
	title2 " ";
	title3 "Title I would like to increase the size of the font" ;
	proc sgplot data=have;
	  xaxis type=discrete valueattrs=(color=black size=12pt)  min=0 max=20;
	  yaxis grid label="IMPRET/CXRET12M" valueattrs=(color=black size=12pt) max=&maxval min=&minval;
	  series x=var3 y=var1/ markers markerattrs=(symbol=CircleFilled color=blue) ;
	  series x=var3 y=var1/ markers markerattrs=(symbol=TriangleFilled color=red) ;
	run;
	title;
	title2;
	title3;
	ods html close;

I am trying to increase the size of the font of the title and the legend. Also the text of the variables on the X and y axis. Can someone please help.


 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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