search for: colorrange

Displaying 1 result from an estimated 1 matches for "colorrange".

2011 Feb 20
2
Same color key for multiple lattice contour plots
...tep 2 calculate the range of groundwater heads for this plot: rangehere<-seq(floor(min(z1)/bynumb)*bynumb,ceiling(max(z1)/bynumb)*bynumb,by=bynumb) # rangehere appears to be seq(-5.6, -2.4, by = -.2, length = 17) # step 3 calculate the range of colors that fit to the range of groundwater heads colorrange<-round(seq(((rangehere[1]-deltaseq[1])/bynumb)+1,((max(rangehere)-deltaseq[1])/bynumb),1)) # colorrange is 1 to 16 --> should be correct. plot1 <- contourplot(fit~x*y, data = grid,cuts = length(colorrange)-2,region=TRUE, col.regions=rev(rainbow(n=numbcolstotal))[colorrange], c...