[R] R_Calculating Thiessen weights for an area with irregular boundary
Rolf Turner
r.turner at auckland.ac.nz
Thu Apr 23 01:02:57 CEST 2015
On 22/04/15 22:43, Manoranjan Muthusamy wrote:
<SNIP>
> 4. <SNIP>
> How can I show the Dirichlet tile names (i.e. 1,2,3,....,8) in the
> plot?
There's no built-in way at the moment as far as I can tell.
One way to get the tiles to be labelled/numbered in the plot would be:
plot(dX)
text(X,labels=1:npoints(X))
Slightly sexier:
cents <- as.data.frame(t(sapply(tiles(dX),centroid.owin)))
plot(dX)
text(cents,labels=1:nrow(cents))
Is this satisfactory?
cheers,
Rolf Turner
--
Rolf Turner
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
Home phone: +64-9-480-4619
More information about the R-help
mailing list