BookmarkSubscribeRSS Feed
whymath
Barite | Level 11

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.

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

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
  • 1366 views
  • 0 likes
  • 2 in conversation