Hi,
I am a relatively new SAS user, and I am kind of lost at this problem. I am using the SAS Studio (student version), and I am creating a forest plot, using proc sgplot. In the graph, I want to assign superscripts (e.g. a, b, c, d) to multiple data points and I don't know how to do it! I have searched online, and the solutions there are way over my head. Here is how my data looks like (those are all character variables):
Study Hormone HCat LCat or(95%CI)
david(2011) HCG 2-fold Baseline 1.00 (0.85-1.56)
In the forest plot, I want to assign superscript 'a' to the HCat value '2-fold', and superscript 'b' to the or(95%CI) value 1.00 (0.85-1.56). In addition, I want to write the footnotes (which I know how to write), starting with a superscript (which I don't know).
Any help will be greatly appreciated!!
Thanks,
Javaid
My recent blog shows how to put special characters in axis tables. You will need to find the Unicode specifications for the characters you want and modify the code accordingly. Here is one source: https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts
Hi Warren,
Thanks for your prompt reply!
It's hard for me to understand macro code but I will try my best.
Javaid
Javaid, Start at the beginning. Work through the first examples before you get into the macro. Copy the code, run it, tweak it a bit. When you understand the basic starting examples, the rest will be easier. Also, you do not have to use the macro to make any of this work. It will make things easier once you understand how this works.
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!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.