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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.