Hello, I have a series of coordinates (latitudes and longitudes) each one/several associated to a code (from 1 to 28). I used function points (latitude, longitudes) to transfer them to a per-prepared map. 1- I wonder how I might be able to automatically add codes (1-28) to the map too? 2-Moreover, mostly there are a few codes from the identical coordinates. What is the function to avoid overlapping of codes on the map? 3- I want to draw closed line around some geographical areas to define the habitats. Your help in any way (introducing manuals, codes, etc) is appreciated. All the best, Mehdi [[alternative HTML version deleted]]
Mehdi Zarrei <gagzarrei at yahoo.com> [Sun, Oct 10, 2010 at 06:11:23AM CEST]:> > > > > > > > > > > Hello, > > > > I have a series of coordinates > (latitudes and longitudes) each one/several associated to a code > (from 1 to 28). I used function points (latitude, longitudes) to > transfer them to a per-prepared map. > > > > > 1- I wonder how I might be able to > automatically add codes (1-28) to the map too?Type ?text at the R prompt.> > 2-Moreover, mostly there are a few > codes from the identical coordinates. What is the function to avoid > overlapping of codes on the map? >jitter() adds some noise, I don't know of this is sufficient for you.> > 3- I want to draw closed line around > some geographical areas to define the habitats.If you search for "convex hull" in rseek.org, you may find something relevant for you. I did this and the third result was http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=61 -- Johannes H?sing There is something fascinating about science. One gets such wholesale returns of conjecture mailto:johannes at huesing.name from such a trifling investment of fact. http://derwisch.wikidot.com (Mark Twain, "Life on the Mississippi")
Hi Mehdi, Take a look at the spatial task view [1] and the r-sig-geo mailing [2] list. cheers, Paul [1] http://cran.r-project.org/web/views/Spatial.html [2] https://stat.ethz.ch/mailman/listinfo/r-sig-geo On 10/10/2010 06:11 AM, Mehdi Zarrei wrote:> > > > > > > > > > Hello, > > > > I have a series of coordinates > (latitudes and longitudes) each one/several associated to a code > (from 1 to 28). I used function points (latitude, longitudes) to > transfer them to a per-prepared map. > > > > > 1- I wonder how I might be able to > automatically add codes (1-28) to the map too? > > > > > 2-Moreover, mostly there are a few > codes from the identical coordinates. What is the function to avoid > overlapping of codes on the map? > > > > > 3- I want to draw closed line around > some geographical areas to define the habitats. > > > > > > > > Your help in any way (introducing > manuals, codes, etc) is appreciated. > > > > > > > All the best, > > > > Mehdi > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770