BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Leo9
Quartz | Level 8


I am trying to insert in proc sgplot (in the png) file. I am placing footnote statement in the proc sgplot statements.

The footnote is coming up but I couldn't control the size. I tried height option but it is not working. How can you control the footonote attributes in the proc sgplot ?

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

The height option must be before the text:

 

Footnote h=1pt 'Test 1' ;

 

not:

 

Footnote 'Test 1' h=1pt ;

View solution in original post

6 REPLIES 6
DanH_sas
SAS Super FREQ

Did you put the height optoin before the text?

 

footnote h=20pt "A Footnote";

Proc sgplot data=sashelp.class;

vbar age;

run;

Leo9
Quartz | Level 8

 

I tried that but it is not working. Here is the code. I tried placing at after ods layout and before as well but didn't work.

 


ods graphics / reset height=4.5in width=8.8in outputfmt=png imagename= "out";

options orientation=landscape;
ods pdf notoc nogtitle gfootnote dpi=&dpi
file="&output_name"
style= mystyle;

Footnote 'Test 1' h=1pt ;

ods layout start ;

proc sgplot data = lbs ;
format lbstresn tcfmt. ;

series x = weeks y = lbstresn / group = subjid groupms=subjid markers markerattrs=(size =4);
yaxis label = &lbl values =(&ticks) display = all;
xaxis values= (0 to 24 by 1 ) label = "Weeks" display = all ;
refline &valu4/ label = "LOQ = &valu3 " labelattrs = (size = 6) labelloc=inside;
keylegend / valueattrs = (size=6) title = 'Subjects' ;
run;

ods layout end;
ods graphics off;
ods pdf close;

DanH_sas
SAS Super FREQ

The height option must be before the text:

 

Footnote h=1pt 'Test 1' ;

 

not:

 

Footnote 'Test 1' h=1pt ;

Leo9
Quartz | Level 8

I tried this option of putting height first but it is still not working. The footnote is appearing in the footnote but size

is not changing. 

Leo9
Quartz | Level 8

Never mind. I think this works. I had another footnote at the bottom which overwriting the first one.

Thanks you so much.

ballardw
Super User

Since we do not have your dataset you will have to explain exactly how it "is not working". No footnote appears? Appears in an unexpected place (often the bottom of a page not bottom of grapho or table).  Footnote appears but the height is not correct? Wrong font/color/ or other font characterisitc?

 

But as @DanH_sas said: The text MODIFIERS come before the TEXT.

Instead of

Footnote 'Test 1' h=1pt ;

 

it should be

 

Footnote  h=1pt  'Test 1';

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 9205 views
  • 1 like
  • 3 in conversation