| Date: | Fri, 6 Apr 2001 11:50:49 -0400 |
| Reply-To: | Gerhard Hellriegel <ghellrieg@T-ONLINE.DE> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Gerhard Hellriegel <ghellrieg@T-ONLINE.DE> |
| Subject: | Re: GCHART Q: Can use 2 Datasets? |
|---|
I'd use a GPLOT for that. Summarize two datasets with one common variable,
which identifies the week. The variable for in- / out should be two.
Then use a MERGE to combine the datasets (you can use only one for input to
GPLOT. Then plot the two variables with the overlay option in one GPLOT.
data test;
h=10; v=29; c=19; output;
h=11; v=30; c=18; output;
h=12; v=10; c=13; output;
h=13; v=30; c=14; output;
h=14; v=40; c=18; output;
h=15; v=50; c=11; output;
h=16; v=60; c=23; output;
h=17; v=20; c=27; output;
h=18; v=36; c=26; output;
h=19; v=33; c=22; output;
h=20; v=22; c=21; output;
run;
/* h are the numbers of the weeks */
symbol1 v=none i=join w=3 c=red;
symbol2 v=none i=join w=3 c=green;
proc gplot data=test;
plot v*h
c*h /overlay ;
run;
|