BookmarkSubscribeRSS Feed
thamu
Calcite | Level 5

thamu_0-1739373251086.png

I need to subscript LST in AUCLST in PK figure. could you please anyone guide how to do it? I have multiple Parameters coming in sequence in same figure like CMAX, AUCINF etc..How to subscript in Y axis. I am using Proc SGPLOT for creating this box plot.

2 REPLIES 2
DanH_sas
SAS Super FREQ

You will need to use Unicode for the characters. The following is an example. Be sure to use a full-featured Unicode font. In this case, I chose "Times New Roman Uni", as you where using a serif-based font. Hope this helps!

 

ods escapechar '~';
proc sgplot data=sashelp.class;
    vbox weight / category=sex;
    yaxis label="AUC~{Unicode '2097'x}~{Unicode '209B'x}~{Unicode '209C'x}(h*ng/ml)" labelattrs=(family="Times New Roman Uni");
run;
Ksharp
Super User

/*****************************/
%let label1=LST(*ESC*){sup 'lst'}  ;
%let label2=CMAX(*ESC*){sub 'cmax'} ;
data _anno;
length label $ 200;
 drawspace="layoutpercent"; function="text"; textweight="normal"; textsize=12;textcolor="black"; width=200;
 x1=50; y1=2.5;label="&label1."; output;
 x1=2.5;  y1=50;rotate=90;label="&label2."; output;
 run;
proc sgplot data=sashelp.class sganno=_anno;   
scatter x=weight y=height;   
xaxis label=' ';
yaxis label=' ';
run;



Ksharp_0-1739413222233.png

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 753 views
  • 2 likes
  • 3 in conversation