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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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