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 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 974 views
  • 0 likes
  • 2 in conversation