Data visualization with SAS programming

Anno text question

Reply
N/A
Posts: 0

Anno text question

All text is being outputted correctly.
My only issue is that instead of "Greatest time between incidences (2009): 5" (where y=6) I only see "Greatest t" (this is also the case for text where y=4).
How can I fix this?
Thank you.

data month_anno;
length text $40;
function='label';
position='5';
xsys='2'; ysys='2'; hsys='3'; when='A';
size=3;
y=1;
spacing=4.4;
x=3.5; text='JAN'; output;
x=x+spacing; text='FEB'; output;
x=x+spacing; text='MAR'; output;
x=x+spacing; text='APR'; output;
x=x+spacing; text='MAY'; output;
x=x+spacing; text='JUN'; output;
x=x+spacing; text='JUL'; output;
x=x+spacing; text='AUG'; output;
x=x+spacing; text='SEP'; output;
x=x+spacing; text='OCT'; output;
x=x+spacing; text='NOV'; output;
x=x+spacing; text='DEC'; output;
color="green";
function='label';
y=6;
x=3.5; text="Greatest time between incidences (2009): 5";output;
y=4;
x=3.5; text="Greatest time between incidences (YTD): 3";output;
run;
N/A
Posts: 0

Re: Anno text question

Could you specify the procedure you use to draw data ?
I tried your code with small modifications ( length text $64;...;position='6'Smiley Wink and all seems to O.K.

data month_anno;
length text $64;
function='label';
position='5';
xsys='2'; ysys='2'; hsys='3'; when='A';
size=3;
y=1;
spacing=4.4;
x=3.5; text='JAN'; output;
x=x+spacing; text='FEB'; output;
x=x+spacing; text='MAR'; output;
x=x+spacing; text='APR'; output;
x=x+spacing; text='MAY'; output;
x=x+spacing; text='JUN'; output;
x=x+spacing; text='JUL'; output;
x=x+spacing; text='AUG'; output;
x=x+spacing; text='SEP'; output;
x=x+spacing; text='OCT'; output;
x=x+spacing; text='NOV'; output;
x=x+spacing; text='DEC'; output;
color="green";
function='label';
y=6;
x=3.5; position='6';text="Greatest time between incidences (2009): 5";output;
y=4;
x=3.5; position='6';text="Greatest time between incidences (YTD): 3";output;
run;

proc gplot data=month_anno anno=month_anno;
plot y*x
/ haxis=axis1 vaxis=axis2;
axis1 order=(0 to 60 by 5);
axis2 order=(1 to 7 by 1);
run;quit;
Ask a Question
Discussion stats
  • 1 reply
  • 140 views
  • 0 likes
  • 1 in conversation