BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kara11
Calcite | Level 5

Hi everyone,

 

I'm using SAS studio (the university edition) if it matters, but I think it has all the same features as the desktop version. I wrote code to create a figure using proc template. It has two panels (laid out horizontally, like two columns, one row), so I used layout lattice. To make an axis label that would apply to the x-axis of both panels, I used a bottom sidebar. For the units of my axis label, I have (mg/g), but I want it to be mg g-1. I can't figure out how to do this. I tried using the ods escapechar=^ and then within the entry statement using the escape character to specify the unicode. I also tried it with (*ESC*), e.g. (mg g(*ESC*){unicode '207b'x})

Instead of getting the symbols I want (i.e., a superscript minus sign and a superscript one), I just keep getting a little box on the figure where the symbol should be. Is it a font problem? Because other symbols work, like if I put in the unicode for 'alpha', I get a little alpha. I also tried using the code: ^{super -1} and nothing happened. I'm new to inserting special characters, so I bet there's something really simple that I'm missing. Any help appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions
kara11
Calcite | Level 5

Never mind! Adding the font family made it work!

    entry "Green leaf concentration (mg g(*ESC*){unicode '207b'x}(*ESC*){unicode '00b9'x})" / textattrs=(family='graphunicodetext' weight=bold size=15) ;

View solution in original post

1 REPLY 1
kara11
Calcite | Level 5

Never mind! Adding the font family made it work!

    entry "Green leaf concentration (mg g(*ESC*){unicode '207b'x}(*ESC*){unicode '00b9'x})" / textattrs=(family='graphunicodetext' weight=bold size=15) ;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 2039 views
  • 0 likes
  • 1 in conversation