[R] R_Calculating Thiessen weights for an area with irregular boundary
Manoranjan Muthusamy
ranjanmano167 at gmail.com
Thu Apr 23 17:19:05 CEST 2015
It certainly is! Thank you.
Cheers,
Mano
On Thu, Apr 23, 2015 at 12:02 AM, Rolf Turner <r.turner at auckland.ac.nz>
wrote:
> 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
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list