Thanks milton! It is helpfull! On Tue, Nov 24, 2009 at 3:27 PM, milton ruser <milton.ru...@gmail.com>wrote:
> Hi there, > > I picked it up from r.colors' grass manual: > > http://colorbrewer2.org/ > > The code bellow cold be usefull for you explore simbols and colors. > > x11(900,500) > par(mfrow=c(1,2)) > x<-runif(20) > y<-runif(20) > plot(y~x, type="n") > Number.of.symbols<-20 > for (i in 1:Number.of.symbols) > { > points(y[i]~x[i], pch=i, cex=1.5) > text((x[i]+0.02),y[i], i) > } > > colors.list<-colors() > Number.of.colors<-100 > colors.list<-colors.list[1:Number.of.colors] > plot(0:1,0:1, type="n") > for (i in colors.list) > { > x<-runif(1) > y<-runif(1) > text(x,y, i, col=i) > } > > cheers > > miltinho > > On Tue, Nov 24, 2009 at 6:01 PM, phoebe kong <sityeek...@gmail.com>wrote: > >> It should be 11 different groups, not 8. >> >> On Tue, Nov 24, 2009 at 3:00 PM, phoebe kong <sityeek...@gmail.com> >> wrote: >> >> > Hi, >> > >> > I want to draw a plot where the data set has 8 different groups. Could >> you >> > suggest 8 combination of colors and symbols that are distinguishable? If >> the >> > colors are too close, it would be hard to differentiate from the plot. >> > >> > Thanks, >> > >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html> >> and provide commented, minimal, self-contained, reproducible code. >> > > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.