Hi experts,
ods escapechar = '^';
title 'LT^{sub 50}';
I used above to successfully add the subscript 50 to the title LT50, but was not able to Y axis variable/legend in PDF output figures. How to do it?
Thanks,
Assuming you are using the SGPLOT procedure, you can do it this way:
yaxis label="Female_LT^{unicode '2085'x}^{unicode '2080'x}";
You might also need to specify a different font, depending on whether the font you are using support these Unicode values. I would recommend the following if you have this font issue:
yaxis label="Female_LT^{unicode '2085'x}^{unicode '2080'x}" valueattrs=(family="Arial Unicode MS");
Hope this helps!
Dan
Hi Dan,
Thank you for your help and I'm using ODS style=statistical, proc GLM data=LT50 plots all; not SGPLOT
_____
%Macro LT50(var1, var2);
proc glm data=LT50 plots=all;
model &var1=&var2;
run;
_________
Ksharp,
Thanks and I actually want to change "50" to subscript in the variables "LT50" in y axis in the proc GLM?
Best,
Dave
data _anno;
length label $ 200;
drawspace="layoutpercent"; function="text"; textweight="normal"; textsize=12;textcolor="black"; width=200;
x1=2;y1=50;rotate=90;label="LT(*ESC*){sub '50'}"; output;
run;
proc sgplot data=sashelp.class sganno=_anno;
reg x=weight y=height/clm cli;
yaxis label=' ';
run;
Thanks and can those code be used for proc GLM, PLOTS=ALL, not a proc sgplot?
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.