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.
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;
/*****************************/
%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
CFC_SAS_Communities_400x225.jpg
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
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.
Ready to level-up your skills? Choose your own adventure.