|
Joel
This is a bit cumbersome but appears to work. The tricks are 1) combine the type
and site into a single variable eg -- 05vil . Now you will have two distinct
groups of
site values and will group themselves together.
2) set up a symbol statement for each line, designating the color and symbol.
3) to get rid of the type value that is attached to the site, set up a format
that displays the new site value in its original form eg, 05vil will display as
5vil. In the example, I
was lazy and only set up formats for the first and last sites.
Nat Wooding
Virginia Power
dm 'output;clear;log;clear;pgm;';
data plotme;
input type site $ month dv;
site=compress(type||site);
datalines;
0 5VIL 0 9.7723
0 5VIL 3 9.3441
0 5VIL 12 17.4500
0 AUTX 0 9.6566
0 AUTX 3 22.8889
0 AUTX 12 35.2500
0 CCPA 0 5.1900
0 CCPA 3 10.2738
0 CCPA 12 17.0333
0 DOWA 0 10.0294
0 DOWA 3 32.8082
0 DOWA 12 40.9647
0 HAVA 0 15.4902
0 HAVA 3 19.5053
0 HAVA 12 28.9583
0 KCMO 0 10.7843
0 KCMO 3 40.8202
0 KCMO 12 48.5467
0 NHCT 0 12.3267
0 NHCT 3 25.6667
0 NHCT 12 39.1591
0 SHKS 0 21.2165
0 SHKS 3 37.0920
0 SHKS 12 49.1625
0 WANC 0 8.0606
0 WANC 3 24.3947
0 WANC 12 33.3750
1 5RIL 0 10.4257
1 5RIL 3 11.0659
1 5RIL 12 22.9072
1 BPCT 0 8.6792
1 BPCT 3 19.1566
1 BPCT 12 30.1169
1 FWTX 0 9.8427
1 FWTX 3 27.7439
1 FWTX 12 44.9383
1 MENC 0 9.2471
1 MENC 3 10.7736
1 MENC 12 33.1806
1 RIVA 0 12.7619
1 RIVA 3 28.0000
1 RIVA 12 36.4557
1 SEKS 0 16.2063
1 SEKS 3 38.1690
1 SEKS 12 48.2937
1 SLMO 0 9.6214
1 SLMO 3 15.6374
1 SLMO 12 36.5930
1 UPWA 0 9.2588
1 UPWA 3 22.0870
1 UPWA 12 41.4921
1 WPPA 0 1.5347
1 WPPA 3 14.3855
1 WPPA 12 20.0952
;
proc format ;value $fake
'05VIL'='5VIL'
'1WPPA'='WPPA'
;
symbol1 v=plus c=green i = join l = 3 ;
symbol2 v=plus c=red i = join l = 3 ;
symbol3 v=plus c=blue i = join l = 3 ;
symbol4 v=plus c=orange i = join l = 3 ;
symbol5 v=plus c=purple i = join l = 3 ;
symbol6 v=plus c=cyan i = join l = 3 ;
symbol7 v=plus c=yellow i = join l = 3 ;
symbol8 v=plus c=brown i = join l = 3 ;
symbol9 v=plus c=black i = join l = 3 ;
symbol10 v=square c=green i = join l = 3 ;
symbol11 v=square c=red i = join l = 3 ;
symbol12 v=square c=blue i = join l = 3 ;
symbol13 v=square c=orange i = join l = 3 ;
symbol14 v=square c=purple i = join l = 3 ;
symbol15 v=square c=cyan i = join l = 3 ;
symbol16 v=square c=yellow i = join l = 3 ;
symbol17 v=square c=brown i = join l = 3 ;
symbol18 v=plus c=black i = join l = 3 ;
proc gplot gout = tplot;
plot dv * month = site;
format site $fake.;
run;
|