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!
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) ;
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) ;
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.
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.