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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1869 views
  • 0 likes
  • 1 in conversation