When making a graph through gplot, is there a way to add extra information as text to your graph, but the info is predefined and should be gathered from your data.
I now do the following, and would like for the first graph to have a text box somewhere (preferably top right corner) with "flag = 0" and with "flag = 1" for the last two graphs.
data digits;
input ID $1. digit observed expected;
datalines;
A 1 33.3 33.3
A 2 33.3 33.3
A 3 33.3 33.3
B 1 25 33.3
B 2 75 33.3
B 3 0 33.3
C 1 45 33.3
C 2 45 33.3
C 3 10 33.3
;run;
data attribute;
input ID $1. flag;
datalines;
A 0
B 1
C 1
;
proc gplot data=digits;
plot expected*digit
observed*digit
/ overlay legend vref=0 ;
by ID;
run;