Hi, I am a novice in SAS graphics, as I don't get a lpt of practice on it. I am trying to annotate as per the following Figure in my Figure. but somehow not able to get there. Can you please help? I will share my annotation as well, I am sure it's no good,but this is as good as I am at the moment. I have the ref lines and every other thing required here. except the annotations. Please help. Thanks. The expected Figure: My SAS code for Annotation: /*data Anno_N;
length function $10 x1space $12 label TEXTFONT $500;
set datafile2 end=last;
*retain id 0 function x1space y1space textcolor textsize TEXTFONT
textweight anchor width widthunit y1;
TEXTFONT="Albany AMT";
if newcol=mdiffm1m2 then do;
textcolor="black"; function='text'; y1=mdiffm1m2; x1space="Wallpercent"; y1space="datavalue";
label="Mean"; widthunit='percent'; textsize=10; textweight='normal'; anchor='right';
end;
if newcol=lldiffm1m22 then do;
textcolor="black"; function='text'; y2=lldiffm1m22; x2space="Wallpercent"; y2space="datavalue";
label="Mean3"; widthunit='percent'; textsize=10; textweight='normal'; anchor='right';width=30;
end;
run;*/
options nonumber nodate;
ods graphics / reset width=1200px height=700px imagename='Full' ;
ods listing close;
ods escapechar='~';
ODS rtf FILE = "&outpath.&output..rtf";
symbol value=dot interpol=join repeat=100;
ods graphics / reset width=1200px height=700px imagename='Full';
title1 j=c "Bland-Altman Plot for Day 1 and Day 2 observed values at Screening, 6 Min WT Dist.";
title2 j=c "Efficacy Set";
footnote1 " ";
proc sgplot data=datafile2(where=(_visit_="Screening")) /*sganno=anno_n*/;
scatter x=meanm1m2 y=diffm1m2/ markerattrs=(color=green) tip=(meanm1m2 diffm1m2);
refline lldiffm1m22 / axis=y lineattrs=(color=red pattern=4 thickness=2pt);
refline mdiffm1m2/ axis=y lineattrs=(color=blue thickness=2pt);
refline uldiffm1m22/ axis=y lineattrs=(color=red pattern=4 thickness=2pt);
yaxis label='Day 1 - Day 2' labelattrs=(style=normal );
xaxis label='Mean of Day 1 and Day 2';
run;
ods rtf close;
ods listing; The SG plot seems to be okay. I will uncomment sganno if my annotation works. but this doesn't. Let me know, if ant other info is needed. Thanks
... View more