|
I think if you specify a colour for each symbol statement then it might work
as you intended. Give it a try.
"squ" <qushisheng@hotmail.com> wrote in message
news:38546ab0.0211031902.4ec8a436@posting.google.com...
> This program is directly from SAS 8.0 documentation (chapter 2 of
> SAS/ETS user guide). But when I run this program, I got a graph
> different from Figure 2.10 in the documentation. Specifically, I am
> supposedly to get a graph with 4 different kind of symbols; but I only
> got the first symbol used all four series in 4 different colors. Is
> there any glocal setting controlling for symbol usage? Thank you for
> any comments.
>
>
>
> data uscpi;
> input date: monyy7. cpi;
> datalines;
> jun1990 129.9
> jul1990 130.4
> aug1990 131.6
> sep1990 132.7
> oct1990 133.5
> nov1990 133.8
> dec1990 133.8
> jan1991 134.6
> feb1991 134.8
> mar1991 135.0
> apr1991 135.2
> may1991 135.6
> jun1991 136.0
> jul1991 136.2
> ;
> proc forecast data=uscpi interval=month lead=12
> out=foreout outfull outresid;
> var cpi;
> id date;
> run;
> proc gplot data=foreout;
> symbol1 r=1 i=none v=star h=2;
> symbol2 i=spline v=circle h=2;
> symbol3 i=spline l=20;
> symbol4 i=spline l=20;
> format date yyqc4.;
> plot cpi * date = _type_ /
> haxis= '1jan89'd to '1jul92'd by qtr
> href= '15jul91'd ;
> where _type_ ^= 'RESIDUAL';
> run;
|