[R-sig-Geo] center of gravity
Rick Reeves
reeves at nceas.ucsb.edu
Fri Aug 31 20:33:46 CEST 2007
Hi: look for Centroid calculations:
>help.search("centroid") will show:
Help files with alias or concept or title matching 'centroid' using
fuzzy matching:
apply.polygon(maps) Polygon functions
get.Pcent(maptools) Polygon centroids
calcCentroid(PBSmapping) Calculate the Centroids of
Polygons
centroid.owin(spatstat) Centroid of a window
affinexy(spatstat) Internal spatstat functions
I suspect that the best one for your case would be centroid.owin, since
it has the most
straightforward input data requirements.
Hope this helps,
Rick Reeves
--
Rick Reeves
Scientific Programmer / Analyst
National Center for Ecological Analysis and Synthesis
UC Santa Barbara
reeves at nceas.ucsb.edu
www.nceas.ucsb.edu
805 892 2533
daiconnie wrote:
>
>
> Hi, everyone,
>
> I have a question coming up from my research.
>
> Suppose I want to find the center of gravity for an arbitrary 2-D shape, are there any packages or functions in R that can do it for me? Thanks!
>
> Best,
>
> Connie
> _________________________________________________________________
> Óà Live Search ËѾ¡ÌìÏÂ×ÊѶ£¡
>
> [[alternative HTML version deleted]]
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reeves.vcf
Type: text/x-vcard
Size: 339 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20070831/9e94c3f3/attachment.vcf>
More information about the R-sig-Geo
mailing list