Re: [R-sig-Geo] YNT: Complete spatial randomness testing

2016-10-03 Thread Rolf Turner
On 03/10/16 20:35, Cenk İÇÖZ wrote: According to your suggestion , I excluded duplicated points. However I took the same error message. udp1<-unique.ppp(dp1) xxx<-allstats(udp1) Error: in Fest(X, r) the successive r values must be finely spaced: given spacing = 0.010196; required spacing <=

Re: [R-sig-Geo] DEM plot3D and overlay an aerial image

2016-10-03 Thread MacQueen, Don
Have you tried plotRGB(gruissan) ? plotRGB is in the raster package. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 10/3/16, 2:38 AM, "R-sig-Geo on behalf of Mathieu Rajerison"

Re: [R-sig-Geo] raster: crop error ('nrows > 0 is not TRUE')

2016-10-03 Thread Dominik Schneider
Isn't the southern border of your boundary shapefile outside the extent of your raster? hence there are no rows to extract. On Mon, Oct 3, 2016 at 7:45 AM, Mauricio Zambrano Bigiarini < mauricio.zambr...@ufrontera.cl> wrote: > Dear list, > > I'm applying the 'crop' command of the raster pacakge

[R-sig-Geo] raster: crop error ('nrows > 0 is not TRUE')

2016-10-03 Thread Mauricio Zambrano Bigiarini
Dear list, I'm applying the 'crop' command of the raster pacakge to subset a RasterStack ('r') with a SpatialPolygonsDataFrame ('boundary'): raster.crop <- crop(r, boundary, snap="out") and what I get is: Error: nrows > 0 is not TRUE The summary of the two previous objects are: > r class

Re: [R-sig-Geo] DEM plot3D and overlay an aerial image

2016-10-03 Thread Michael Sumner
On Mon, 3 Oct 2016 at 21:08 Mathieu Rajerison wrote: > Hi R-List, > > > I have a DEM on one hand, and on the other hand, I have an RGB aerial image > > I tried rasterVis and plot3D function, but I didn't find how to use the > colors of my RGB aerial image. > > For

Re: [R-sig-Geo] spplot : different legends per plot & mode of classification by default ?

2016-10-03 Thread Mathieu Rajerison
Thanks a lot, it's perfect ᐧ 2016-10-03 13:22 GMT+02:00 A. Marcia BARBOSA : > Hi, > > Chek out the code under fig12.R at http://rspatial.r-forge.r-proj > ect.org/gallery/. > > If you don't necessarily have to use spplot, I find the choroLayer > function in the cartography

Re: [R-sig-Geo] DEM plot3D and overlay an aerial image

2016-10-03 Thread Mathieu Rajerison
Thanks Barry. The doc says that drape uses a RasterLayer but not a RasterStack. So I don't know to overlay my RGB 3-dim layer on top of the DEM. Maybe I should convert the RGB to a unique value ? How to convert a RGB value to a unique value and does plot3D accept it ? ᐧ 2016-10-03 13:14

Re: [R-sig-Geo] spplot : different legends per plot & mode of classification by default ?

2016-10-03 Thread A. Marcia BARBOSA
Hi, Chek out the code under fig12.R at http://rspatial.r-forge.r- project.org/gallery/. If you don't necessarily have to use spplot, I find the choroLayer function in the cartography package much simpler. It uses the plot function, so it's compatible with par (allowing you to set mfrow, mar,

Re: [R-sig-Geo] DEM plot3D and overlay an aerial image

2016-10-03 Thread Barry Rowlingson
On Mon, Oct 3, 2016 at 10:38 AM, Mathieu Rajerison wrote: > Hi R-List, > > > I have a DEM on one hand, and on the other hand, I have an RGB aerial image > > I tried rasterVis and plot3D function, but I didn't find how to use the > colors of my RGB aerial image. from

[R-sig-Geo] spplot : different legends per plot & mode of classification by default ?

2016-10-03 Thread Mathieu Rajerison
Hi, I have several variables of numeric data that I whish to spplot. How to push one classification per plot ? Also, what is the mode of classification used by default by spplot ? Is the data split into quantiles ? Thanks in advance for your answer Mathieu ᐧ [[alternative HTML

[R-sig-Geo] DEM plot3D and overlay an aerial image

2016-10-03 Thread Mathieu Rajerison
Hi R-List, I have a DEM on one hand, and on the other hand, I have an RGB aerial image I tried rasterVis and plot3D function, but I didn't find how to use the colors of my RGB aerial image. For the moment, I used rgl instead although it doesn't seem very appropriate for georeferenced data..

Re: [R-sig-Geo] YNT: Complete spatial randomness testing

2016-10-03 Thread Cenk İÇÖZ via R-sig-Geo
According to your suggestion , I excluded duplicated points. However I took the same error message. udp1<-unique.ppp(dp1) xxx<-allstats(udp1) Error: in Fest(X, r) the successive r values must be finely spaced: given spacing = 0.010196; required spacing <= 0.00586 I attached the data for you