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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1081 views
  • 1 like
  • 2 in conversation