Help using Base SAS procedures

Annotating in Proc Gplot

Reply
Contributor
Posts: 29

Annotating in Proc Gplot

Hello, I am using the following code to add error bars to a scatterplot of means:

Proc Gplot data=meanst annotate=annotate_means;
plot avg1*varnum=group;
symbol1 v=circle c=green;
symbol2 v=triangle c=red;
Run; Quit;

Straightforward enough, I would think. However, the resulting graph is showing lines in the far bottom left corner of the graph screen, not even inside of the graph itself, and definitely not at the Xs or Ys they are supposed to line up with.


Here is a subset of the annotate dataset:

avg1 varnum std1 function style color text hsys xsys ysys position X Y size line

0.23649 0.9 0.42564 move swissb 3 3 3 6 0.7 0.00000 . .
0.23649 0.9 0.42564 draw swissb green 3 3 3 6 1.1 0.00000 0.8 1
0.23649 0.9 0.42564 move swissb green 3 3 3 6 0.9 0.00000 0.8 1
0.23649 0.9 0.42564 draw swissb green 3 3 3 6 0.9 0.66213 0.8 1
0.23649 0.9 0.42564 move swissb green 3 3 3 6 0.7 0.66213 0.8 1
0.23649 0.9 0.42564 draw swissb green 3 3 3 6 1.1 0.66213 0.8 1
0.03041 1.9 0.17199 move swissb 3 3 3 6 1.7 0.00000 . .
0.03041 1.9 0.17199 draw swissb green 3 3 3 6 2.1 0.00000 0.8 1
0.03041 1.9 0.17199 move swissb green 3 3 3 6 1.9 0.00000 0.8 1
0.03041 1.9 0.17199 draw swissb green 3 3 3 6 1.9 0.20240 0.8 1
0.03041 1.9 0.17199 move swissb green 3 3 3 6 1.7 0.20240 0.8 1
0.03041 1.9 0.17199 draw swissb green 3 3 3 6 2.1 0.20240 0.8 1


I am 99.9% positive that the annotate dataset itself is correct. Any ideas why the annotations are not printing inside the graph, at their designated Xs and Ys? Thank you!
Contributor
Posts: 49

Re: Annotating in Proc Gplot

If the X and Y values are menat to be the actual values then your XSYS and YSYS values should be 2. Absolute values in the Data area.
Ask a Question
Discussion stats
  • 1 reply
  • 124 views
  • 0 likes
  • 2 in conversation