BookmarkSubscribeRSS Feed
sassygrl
Calcite | Level 5
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!
1 REPLY 1
LawrenceHW
Quartz | Level 8
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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 868 views
  • 0 likes
  • 2 in conversation