Displaying 1 result from an estimated 1 matches for "numvsdistscount".
2010 Dec 14
1
colour-plot of point intensities?
...e a colour-scale like that, too, but]
My current approach, based on a bit in the back of Crawley's R book,
was to create a new data file where I rounded distance off, and
counted the number of similar rows to give a third column (a count). I
then did:
library(akima)
obs <- read.table("numvsdistscount.dat")
zz <- with(obs,interp(V1,V2,V3))
filled.contour(zz,col=heat.colors(12))
But:
i) I think doing a rounding step to create the third column (separate
from the plot generation) is unwise
ii) This results in a shaded area less than the full area of the plot
iii) The colour comes out almos...