Date: Thu, 3 Nov 2005 11:42:57 -0800
Reply-To: jim_stehle@YAHOO.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: jim_stehle@YAHOO.COM
Organization: http://groups.google.com
Subject: Re: Using a different symbol for each plot instead of a different
color
Content-Type: text/plain; charset="iso-8859-1"
I don't know of a way to change the automatic assignment but each plot
line can be explicitly set. Try placing something like the following
lines before the plot statement.
symbol1 c=black v=diamond;
symbol2 c=black v=star;
symbol3 c=black v=square;
symbol4 c=black v=x;
symbol5 c=black v=triangle;
symbol6 c=black v=hash;
symbol7 c=black v=dot;
symbol8 c=black v=circle;
symbol9 c=black v=(;
symbol10 c=black v=/;
Anonymous user wrote:
> Hello,
>
> when you plot (proc gplot) something with "y * x = group", a different
> color is used for each group. How can you tell SAS to change the
> shape/symbol instead?
>
> Here is an example:
>
> data d;
> do g = 1 to 10;
> do i = 1 to 100;
> x = (ranuni(56895420) - 0.5) * 4;
> y = exp(-(x ** 2) / g);
> output;
> end;
> end;
>
> drop i;
> run;
>
> goption reset=all;
>
> /* 2D overlay of all the plots */
> proc gplot data = d;
> /* how to use one shape by group instead of one color by group?
> */
> plot y * x = g;
> run;
|