[R] Get contour of a map

Pierre Bruyer pbruyer at agaetis.fr
Tue May 24 11:40:21 CEST 2011


I have seen this package and especially the 'perimeter' function, and it has not a 'levels' parameters like a lot of other functions, and this is a big problem for my project.
Otherwise I find this package have a better architecture than the other spatial package ^^


Le 24 mai 2011 à 10:52, David Winsemius a écrit :

> 
> On May 23, 2011, at 5:55 AM, Pierre Bruyer wrote:
> 
>> Hello everybody,
>> 
>> I search a function which returns the contour of map with levels like contourLines, but I would like this function return the border of the map too, because the function contourLines cannot consider the corner of the map and it is not adapted to fill polygon after that.
> 
> Frank Harrell has a `perimeter` function in his `rms` package which he uses to establish (and optionally draw)  boundaries around 2D regions with sufficient data to yield meaningful estimates. The plotting is handed off to lattice functions. His default plotting function for 2D plotting is contourplot. It didn't take that long to make the transition to rms+lattice and I have been very pleased with the integration of the two.
> 
> There is also a chull  (convex hull) function although at the moment I do not remember which package it resides in.
> 
> 
>> 
>> Thanks in advance
>> 
>> Pierre Bruyer
>> ______________________________________________
>> 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.
> 
> David Winsemius, MD
> West Hartford, CT
> 



More information about the R-help mailing list