BookmarkSubscribeRSS Feed
whymath
Lapis Lazuli | Level 10

When I going to plot a special character ∞ (Infinity) as subscript in position of Y axis label, I just failed so many times.

So, May some of you could help me? Thanks a lot.

This is the demo code:

ods escapechar='^';

data test;
	input Dose AucInf;
	cards;
	10 11
	10 15
	20 18
	20 20
	30 24
	30 25
	;
run;

proc sgplot data = test;
	scatter x = Dose y = AucInf;
	label Dose = 'Dose(mg)' AucInf = 'AUC^{sub 0-∞}(min*ng/mL)';
run;

Like I said before, neither label statement nor yaxis statement works.

I also tried the unicode method:

https://blogs.sas.com/content/graphicallyspeaking/2011/11/14/the-power-of-unicode/

But there never have a subscript format unicode for ∞ !

1 REPLY 1
JosvanderVelden
SAS Super FREQ
The "^{sub 0-∞}" works with procedures like proc print. It does not with sgplot, unicode should work. But unicode subscript format for infinity is an issue.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 1108 views
  • 0 likes
  • 2 in conversation