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 15:23:30 -0500
Reply-To:     "Michael S. Zdeb" <msz03@HEALTH.STATE.NY.US>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Michael S. Zdeb" <msz03@HEALTH.STATE.NY.US>
Subject:      Re: Using a different symbol for each plot instead of a different
              color
Comments: To: jim_stehle@YAHOO.COM
In-Reply-To:  <1131046977.545934.304670@z14g2000cwz.googlegroups.com>
Content-type: text/plain; charset=US-ASCII

Hi...one way to avoid color cycling (and force SAS/Graph to choose different symbols)...

goptions csymbol=black;

You can still write SYMBOL statements (as you've shown), but you can leave out the COLOR specification in each one.

Mike Zdeb U@Albany School of Public Health 1 University Drive Rensselaer, NY 12144-3456 (P)518-402-6479 (F)630-604-1475

jim_stehle@YAHOO. COM Sent by: "SAS(r) To Discussion" SAS-L@LISTSERV.UGA.EDU <SAS-L@LISTSERV.U cc GA.EDU> Subject Re: Using a different symbol for 11/03/2005 02:42 each plot instead of a different PM color

Please respond to jim_stehle@YAHOO. COM

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