BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
_Hopper
Obsidian | Level 7

Is there an efficient way to do this? I need to place double-digit superscipts (powers of 10) on  plots. The only way I can get it to work is if I use two unicode statements, one for each digit. 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Like this?

 

ods escapechar='^';
proc sgplot data=sashelp.class;
   scatter x=height y=weight;
   inset  "some text 6x10(*ESC*){sup'11'}";
run;

View solution in original post

4 REPLIES 4
ballardw
Super User

Can you share what you have attempted?

As in some data and the code where you need to display these. There can be some interesting limitations depending on whether you want these to appear on an axis tick mark label, as a data label in the body of a graph or text somewhere else.

_Hopper
Obsidian | Level 7
It goes in an inset box
6.8X10^11
ballardw
Super User

Like this?

 

ods escapechar='^';
proc sgplot data=sashelp.class;
   scatter x=height y=weight;
   inset  "some text 6x10(*ESC*){sup'11'}";
run;
_Hopper
Obsidian | Level 7
That did it! Thanks!

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 570 views
  • 1 like
  • 2 in conversation