Team, we figured this out, Roger at XLSOLUTIONS solved the puzzle for us..!! Okay you can easily change the color palette.
see below: library(MASS) library(deldir) set.seed(1123) y <- runif(20) x <- runif(20) #run voronoi from deldir package ddd <- deldir(x,y) ttt <- tile.list(ddd) plot.deldir(ddd,wlines="tess") #play with colors *ccc <- colors()[1:20] or ccc <-heat.colors(20) or ccc <-terrain.colors(20)* plot(ttt,polycol=ccc,close=T) Rolf Turner wrote: > > On 12/08/2007, at 1:22 PM, zubin wrote: > >> Hello! >> >> I am using the deldir package to visualize my data, pretty neat. >> However, i need to fill the colors using polycol =, fill with colors >> like a heatmap - more of a gradient fill. The only colors i get are >> very blocky - how do i assign the correct colors for a gradient, even a >> grayscale? i tried the chart of R colors, using 200 numbers for >> grayscale but not getting them. The polycol = colors the cells in the >> tesselation with the value a specific vector for color. > > <snip> > > I'm sorry, but I can't help here. I've been struggling with colors, > in a different > context, recently myself, and I'm unclear as to how they work. There > are a bunch > of functions --- palette(), colorRamp(), colorRampPalette() that > probably relate > to what you want to do, but I'm not sure just *how* they relate. > > With a bit of luck, someone cleverer than I will come to your rescue. > > cheers, > > Rolf Turner > > ###################################################################### > Attention:This e-mail message is privileged and confidential. If you > are not theintended recipient please delete the message and notify the > sender.Any views or opinions presented are solely those of the author. > > This e-mail has been scanned and cleared by > MailMarshalwww.marshalsoftware.com > ###################################################################### > ______________________________________________ R-help@stat.math.ethz.ch 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.