LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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;


Back to: Top of message | Previous page | Main SAS-L page