Sample 24922: Change the mean symbol on a HILO plot
/*****************************************************************/
/* The default mean symbol on a HILO plot is a horizontal tick */
/* mark. You can change the symbol by overlaying a dummy symbol */
/* to 'block' out the tick mark, then put a new symbol */
/* over that symbol. You'll need to run proc means to get */
/* the mean y value for each x value. This code does it all. */
/*****************************************************************/
goptions reset=all border;
data a;
input x y;
datalines;
1 45
1 73
2 49
2 75
3 52
3 60
4 39
4 62
5 50
5 72
;
proc means data=a;
by x;
output out=meandata mean=means;
run;
data b;
merge a meandata;
by x;
run;
proc print data=b;
run;
symbol1 i=hiloj v=dot c=blue;
symbol2 i=none v=dot c=white;
symbol3 i=none v=circle c=red;
axis1 offset=(2,2);
title1 'New Symbol';
proc gplot data=b;
plot y*x means*x means*x / overlay haxis=axis1;
run;
quit;

This sample overlays a dummy symbol to 'block' out the tick mark, then puts a new symbol over that symbol.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GPLOT Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Elements ==> Symbols/Interpolation
|
| Date Modified: | 2005-08-31 03:03:18 |
| Date Created: | 2004-11-11 11:08:01 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | n/a | n/a |