[R] centroid of radial.plot differs from centroid.polygon
stefan.uhmann at mailbox.tu-dresden.de
Wed Aug 20 13:36:03 CEST 2008
I need the centroid of circular data and (because the function used does
not provide the centroid coordinates, or did I miss sth.?) tried it via
the indirect way and just computed the cartesian coordinates:
main="test",show.grid=TRUE, radial.lim=c(0,3.5), show.centroid=TRUE,
#compute cartesian coordinates
#print cartesian points (of polygon)
#print cartesian centroid
My problem is, that the centroid computed by the radial.plot-function
(big unfilled circle) is somewhat different from the one computed 'by
hand' using cartesian coordiantes and centroid.polygon (small triangle).
I would really appreciate any suggestions how to obtain the correct
centroid and what is wrong here.
More information about the R-help