Incorrect annotation in the BOXPLOT procedure with a numeric group variable prior to SAS®9


If you specify the ANNOTATE= or ANNO= option in the PROC BOXPLOT statement and the X variable values in the annotate data set are equal to the group variable values, the annotation will be done incorrectly. Either some annotated values are missing or values are plotted at the wrong X value.

Workaround

To circumvent this problem, convert the numeric group variable in the DATA= data set to a character variable using the PUT function in a DATA step, and change from an X to an XC variable in the annotate data set.