Hi, Rick,

Thank you for the nice article. I have the following comments:

(1). I am wondering if we can create annotation dataset and use SGANNO= option in PROC SGPLOT to annotate the regression lines. Please advise and provide and an example. I am not sure if SGANNO= option is available at the time this blog was published.

(2). I had tried out the example using the second method described in the blog, I note that using the second method, the regression equations are black in color. Is there any way to have the same color as the data displayed in the plot.

(3). I have macro-ized this method to create multiple such plots with different variables for the dependent variable (y) and the explanatory variable (x). It seems it is hard to predict what will be generated in the REGPLOT dataset. Since SAS datasets are confined to 32 characters, the system has made adjustment to the variable names. I ended up creating the datasets from PROC CONTENTS and looking for variable names with '__X', '__Y' and '__GP' to identify these variables.

(4). Some adjustment on the coordinates for the regression equations may be needed if the end of the regression lines are close to each other. Otherwise, the equations may be overlapped.

(5). I have used 'if first.groups' in Coords dataset and get the coordinates that are the beginning of the regression lines. And use position=left in the text statement. However, it does not look as nice.

(6). Has new features been implemented to make this annotation easier? This may be related to (1).

Thank you very much for the blog! I enjoy your posting and blog and I learn a lot from them. Please keep up the good work.

I am looking forward to your reply.