BookmarkSubscribeRSS Feed
mariko5797
Pyrite | Level 9

I found this code from a different post to add a footnote within a plot while simultaneously having a footnote outside the plot.

data boxplot;
 retain function "text" drawspace "graphpercent" width 100 x1 50;
 length anchor $ 6 textstyleelement $ 17 label $ 18;
 input y1 anchor $ textstyleelement $ label $ 29-100;
 cards;
 1  bottom GraphFootnoteText Note: Concentrations were adjusted for dose received at time of sample taken
 ;
run;

Is there a way to edit the aesthetic? Specifically I would like to make the text a tad smaller left aligned (so it doesn't get confused with the x-axis label).

2 REPLIES 2
Reeza
Super User
That looks like part of an annotate data set?
If so, you can specify the font under a STYLE variable and the size with SIZE. Not sure about the alignment.

If that's used with SGTEMPLATE/RENDER the above may not apply.

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/graphref/n1vi0cxl5w9kgan1cb6e20gpoei9.htm
ChrisNZ
Tourmaline | Level 20

See this paper for the elements you are missing.

https://www.lexjansen.com/phuse-us/2018/ct/CT07.pdf

anchor controls the position. For example anchor="BOTTOMLEFT".

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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