I am trying to create a comparative histogram with separate labels on each graph. I included the code I am using below. The first block is creating the annotations and the second is the univariate procedure to create the histograms. It's separated by class and there are 2 classes. Is it possible to create the labels first? If not, can you label a histogram after it has been created? * Note: I changed several macros for clarity, but some formatting may have been messed up in the process. The code works fine and the label works, I just need separate labels. %ANNOMAC() DATA ANNO; LENGTH TEXT $100; WHEN='A'; %SYSTEM(2, 1) %LINE(&threshold.,0, &threshold.,100, black, 2, 1) %LABEL(&labelposition., 90, "&thresholdlabel", black, 0, 0, 2.4, 'Albany AMT', &labelalign.) %LABEL(&labelposition., 80, "&providerlabel", black, 0, 0, 2.1, 'Albany AMT', &labelalign.) %ARROW (&arrowx1., &arrowy., &arrowx2., &arrowy., black, 1, 1, 90, open) ;RUN; PROC UNIVARIATE DATA= sample NOPRINT; Class model FORMAT percent_of_Providers PERCENT8.2; VAR percent_of_Providers; HISTOGRAM percent_of_Providers /anno=ANNO NOFRAME CFILL=BWH CBARLINE=BIGB VSCALE=PERCENT HEIGHT=4 BARLABEL=PERCENT VAXISLABEL= &yaxislabel. MIDPOINTS= 5 to 100 BY 10 FONT="Albany AMT" nrows=2;
... View more