Re: [R] Get contour of a map

2011-05-24 Thread Pierre Bruyer
} dev.off() } Here I use the solution of Duncan Murdoch, it is almost that I want, now I try to resolve the default of his methods, e.g. I don't want smooth the contour ( the border) of my raster. Thank for your help :-)) (Sorry for the spam, I have f

Re: [R] Get contour of a map

2011-05-24 Thread Pierre Bruyer
constrains, and I don't see how gPolygon can help me (in it doc, I have seen this function cut polygon in a set of subpolygon. Le 24 mai 2011 à 10:18, Barry Rowlingson a écrit : > On Mon, May 23, 2011 at 8:00 PM, Duncan Murdoch > wrote: >> On 11-05-23 5:55 AM, Pierre Bruyer w

Re: [R] Get contour of a map

2011-05-24 Thread Pierre Bruyer
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

Re: [R] Get contour of a map

2011-05-24 Thread Pierre Bruyer
I think it is a very good idea, thank a lot, I will try this! Le 23 mai 2011 à 21:00, Duncan Murdoch a écrit : > On 11-05-23 5:55 AM, Pierre Bruyer wrote: >> Hello everybody, >> >> I search a function which returns the contour of map with levels like >> contourL

[R] Get contour of a map

2011-05-23 Thread Pierre Bruyer
. Thanks in advance Pierre Bruyer __ R-help@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.

Re: [R] Smooth contour of a map

2011-05-18 Thread Pierre Bruyer
ge between my raster and the window. I think it's the axis of the >> function "plot()", but I have not found how delete it. Someone have a >> solution please? >> >> Pierre Bruyer >> >> ##smooth contour >> >> contours <

Re: [R] Smooth contour of a map

2011-05-18 Thread Pierre Bruyer
found how delete it. Someone have a solution please? Pierre Bruyer ##smooth contour contours <- contourLines(V2b,levels=paliers) par(mar=c(0,0,0,0)) plot(1,col="white",main="polygon()", asp = 1, axes = FALSE, ann = FALSE,xlim=c

Re: [R] Smooth contour of a map

2011-05-17 Thread Pierre Bruyer
27;t get great results. A better way is to use a finer > grid, e.g. by fitting a smooth surface to your set of points and using > predictions from the model to interpolate. > > Duncan Murdoch > > > On 17/05/2011 9:35 AM, Pierre Bruyer wrote: >> I work with large dataset

Re: [R] Smooth contour of a map

2011-05-17 Thread Pierre Bruyer
evel[5,4] <- 102 level[6,4] <- 33 level[7,4] <- 59 level[8,4] <- 63 level[9,4] <- 14 level[10,4] <- 51 Le 17 mai 2011 à 15:17, Duncan Murdoch a écrit : > On 17/05/2011 8:24 AM, Pierre Bruyer wrote: >> Thank you for your answer, but the function spline() (and a lot of ot

Re: [R] Smooth contour of a map

2011-05-17 Thread Pierre Bruyer
;=length(level[,1])) { paliers <- c(paliers,level[i,1]) i <- i+1 } paliers <- c(paliers, 1.0E300) Le 17 mai 2011 à 13:05, Duncan Murdoch a écrit : > On 11-05-17 5:58 AM, Pierre Bruyer wrote: >> I'm a French develope

[R] Smooth contour of a map

2011-05-17 Thread Pierre Bruyer
et of colors, which is define by levels. The problem is the curve of my contour is so linear, and I would like a more continuous contour. I use the function fitted.contour to draw my map. Thanks, Pierre Bruyer __ R-help@r-project.org mailing list