Re: [R-sig-Geo] Error in ContourLines2SLDF(CLrp) : cL too short

2010-09-27 Thread Maxime Pauwels
Thanks Roger, I finally found the solution. It was indeed in the organization of the input file. Best regards Maxime Le 27/09/2010 17:37, Roger Bivand a écrit : On Mon, 27 Sep 2010, Maxime Pauwels wrote: If you want to test the input, please find it here: https://bigfile.univ-lille1.fr

Re: [R-sig-Geo] Error in ContourLines2SLDF(CLrp) : cL too short

2010-09-27 Thread Maxime Pauwels
If you want to test the input, please find it here: https://bigfile.univ-lille1.fr/get?k=sgVm6qmUdiCddAJlpzh Maxime Le 27/09/2010 13:34, Roger Bivand a écrit : On Mon, 27 Sep 2010, Maxime Pauwels wrote: Hi list, I have a message error using contourLines and ContourLines2SLDF functions

Re: [R-sig-Geo] Error in ContourLines2SLDF(CLrp) : cL too short

2010-09-27 Thread Maxime Pauwels
nd a écrit : On Mon, 27 Sep 2010, Maxime Pauwels wrote: Hi list, I have a message error using contourLines and ContourLines2SLDF functions (maptools package). rangerp<-read.table("NAhalleri.txt", header=T) coordinates(rangerp)=~long+lat gridded(rangerp)=TRUE proj4string(rangerp)<-

[R-sig-Geo] Error in ContourLines2SLDF(CLrp) : cL too short

2010-09-27 Thread Maxime Pauwels
e be too long (3 columns, but almost 300 000 lines)? Many thanks, Maxime Maxime Pauwels Researcher ID: http://www.researcherid.com/rid/A-1745-2009 Laboratoire de Génétique et Evolution des Populations Végétales FRE CNRS 3268 Université de Lille, USTL-Lille1 http://gepv.univ-l

[R-sig-Geo] plotting populations on a 3D map of elevation data

2010-07-26 Thread Maxime Pauwels
results spplot(srtm, scales=list(draw=T), xlim=c(9.5, 10.5), ylim=c(45.5, 46.5), cuts=50, col.regions=gray(200:0/200), sp.layout=list(isapoppts, Europe)) -- Maxime Pauwels Researcher ID: http://www.researcherid.com/rid/A-1745-2009 Laboratoire de Génétique et Evolution des Populations Végétales FRE

[R-sig-Geo] scale bar on spplot

2010-06-21 Thread Maxime Pauwels
Dear all, I have a single little question that may be straighforward for much of you. I'm performing spplot and don't know how to eliminate the scale bar from the graph, which is in default settings. Could you help. Thank you max -- Maxime Pauwels Researcher ID: http://www.resear

[R-sig-Geo] create polygons from a SpatialPixelDataFrame

2009-09-25 Thread Maxime Pauwels
ls=0.000186) in white. I could do using "cuts=", but my idea is to create an object I could add on another spplot, using sp.layout function Could you help? Many thanks max -- Maxime Pauwels Researcher ID: http://www.researcherid.com/rid/A-1745-2009 Laboratoire de Génétique et Evo

Re: [R-sig-Geo] spplot point coordinates

2009-06-30 Thread Maxime Pauwels
, proj4string = CRS(as.character(proj4string } } cheers and hth, Paul Maxime Pauwels wrote: Dear all, I think there is a function in the sp package to get the coordinates of a point on a sp plot (~equivalent to "locator"). Could someone remember me its name? Many thanks, ma

[R-sig-Geo] spplot point coordinates

2009-06-30 Thread Maxime Pauwels
Dear all, I think there is a function in the sp package to get the coordinates of a point on a sp plot (~equivalent to "locator"). Could someone remember me its name? Many thanks, max -- Maxime Pauwels Researcher ID: http://www.researcherid.com/rid/A-1745-2009 Laboratoire de Gé

Re: [R-sig-Geo] contour lines on a plot

2009-01-26 Thread Maxime Pauwels
atialGridDataFrame") img1<-as.image.SpatialGridDataFrame(img["K1.pred"]) CL<-contourLines(img1, levels=1:9/10) CLSL<-ContourLines2SLDF(CL) #Display results pts<-list("sp.points", d,pch=20, col="black", cex=1) lns<-list("sp.lines", CL

Re: [R-sig-Geo] contour lines on a plot

2009-01-20 Thread Maxime Pauwels
volcano) res <- ContourLines2SLDF(clv) grd<-GridTopology(c(0,0), c(10, 10), dim(volcano)) spvolcano<-SpatialGridDataFrame(grd, data.frame(altitude=as.vector((volcano[,ncol(volcano):1] spplot(spvolcano, sp.layout=list(list("sp.lines", res)) ) Best, Virgilio

Re: [R-sig-Geo] contour lines on a plot

2009-01-19 Thread Maxime Pauwels
__ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Maxime Pauwels Researcher ID: http://www.researcherid.com/rid/A-1745-2009 Laboratoire de Génétique et Evolution des Populations Végétales http://www.univ-lille1.fr/gepv Tel

[R-sig-Geo] contour lines on a plot

2009-01-19 Thread Maxime Pauwels
t("sp.points", d,pch=20, col="black", cex=1) spplot(p,zcol="K1.pred",col.regions=gray(0:100/100), cuts=40, sp.layout=list(pts), pretty=T) contour(p, add=T, nlevels=2) -- Maxime Pauwels Researcher ID: http://www.researcherid.com/rid/A-1745-2009 Laboratoire de Génétique

[R-sig-Geo] cutting in spplot

2008-12-19 Thread Maxime Pauwels
k... But I have no alternative yet... Could anyone help? Many thanks and Merry Xmas Best regards, max -- Maxime Pauwels Post-Doc Laboratoire de Génétique et Evolution des Populations Végétales UMR CNRS 8016 Batiment SN2Tel : +33 3 20 43 40 76 Universite de LILLE 1 F

Re: [R-sig-Geo] chronolgy of drawing of sp.layout

2008-08-04 Thread Maxime Pauwels
t;, 25 spplot(sppd, pch=19, col.regions=c("#11223355", "#ff223355"), sp.layout=list("sp.points", spp, col.region="yellow")) The transparency is in the "55" bit of "#11223355" and "#ff223355". Best regards, Virgilio On

[R-sig-Geo] chronolgy of drawing of sp.layout

2008-08-01 Thread Maxime Pauwels
ot(data, c("gridr"), scales=list(draw=T),cuts=20, regions=T, main="rvalues", xlab = "longitude (dec.)", ylab="latitude(dec.)", key.space="right", sp.layout=list(poppoints)) the problem is that, as explained in the sp package manual, sp.layo