Hi , I made an annotated dataset to try out the sgplot, and found the result is not what I expected, Could you tell me what i should do to make my existing annotated datasets are still valuable in new powerful procedure sgplot? Thank you so very much. ****************************************************************************; data xx; do Dt='1JAN2016'd to '1jan2017'd; retain CNT 1; cat1=rand('bernolli',0.3); cat2=rand('bernolli',0.5); mon=month(DT); output; end; run; proc means data=xx sum; var CAT1 CAT2; class MON ; output out=res_cnt sum=/autoname; run; data plt; set res_cnt; x=_n_; y=CAT1_sum; if mon>.; run; %annomac; data plt_anno ; set plt; %dclanno; %line(0,0,10,10,black,1,1); %line(0,0,12,22,black,1,1); %line(0,0,22,33,black,1,1); %line(0,0,32,44,black,1,1); run; axis1; axis2; proc ganno annotate=plt_anno; title1 "ganno"; run; proc gplot data=plt; title1 "gplot"; plot y*mon/anno=plt_anno; run; proc sgplot data=plt sganno=plt_anno; title1 "sgplot"; scatter x=mon y=y; run; ***************************************************************************;
... View more