[R] placing labels in polygon center ?
th50 at leicester.ac.uk
Wed Aug 13 11:29:43 CEST 2003
> -----Original Message-----
> From: oehl_list at gmx.de [mailto:oehl_list at gmx.de]
> Sent: 13 August 2003 10:01
> To: r-help at stat.math.ethz.ch
> Subject: [R] placing labels in polygon center ?
> Dear all,
> is there any function to calculate the center of a polygon mass in R?
> Actually I need to find the best location within polygons to
> place labels.
Trying to recall from my physics education, the mass centre is at the
averages of the coordinates of the corners, isn't it?
However, the task is more complex: your polygon might be X-shaped...
Research Associate in Medical Statistics
University of Leicester
Department of Epidemiology and Public Health
22-28 Princess Road West
Tel +44 116 252-5410
Fax +44 116 252-5423
Division of Medicine for the Elderly
Department of Medicine
The Glenfield Hospital
Tel +44 116 256-3643
Fax +44 116 232-2976
More information about the R-help