Re: [R-sig-Geo] Problem with plotting overlaid maps

2014-12-10 Thread Agustin Lobo
(sorry for the g1 issue, g2 can be used as it is the same extent) It works for me as well, but when you resize the graphic window the map gets distorted. Close the graphic window before the second part and resize to a rectangle with much shorter height than length. Does the map keep with its corre

Re: [R-sig-Geo] Problem with plotting overlaid maps

2014-12-10 Thread Edzer Pebesma
A general piece of advice: always test run your script in an EMPTY R session (e.g., R --vanilla) before posting. Below, g1 is unknown; if replaced with g2 the script runs, at least. On 12/10/2014 01:39 PM, Agustin Lobo wrote: > I have a problem plotting a raster layer with its legend overlaid on

Re: [R-sig-Geo] bootstrapping linear model and residuals kriging by RSAGA

2014-12-10 Thread rubenfcasal
Hi Vasya, You have to take into account, when doing bootstrap, that you are dealing with dependent data. Standard bootstrap will destroy this dependence, so you should use alternatives such as some kind of block bootstrap (see e.g. Politis and Romano, 1994. The stationary bootstrap. JASA,

[R-sig-Geo] Problem with plotting overlaid maps

2014-12-10 Thread Agustin Lobo
I have a problem plotting a raster layer with its legend overlaid on a GM map. I can circunvent the problem (see below), but then I get another problem: the resulting map has a geometry that is dependent upon the geometry of the window. Is there any solution? This is what I do: require(rgdal) req

[R-sig-Geo] FW: subscript out of bounds, getvertices adehabitathr

2014-12-10 Thread Simone Mordue (PGR)
Hope someone can help, I have 10 animals and have generated random points based on recorded polygons for each animal. I have run this 100 times per animal. My aim is to generate a mean utilized distribution for each animal based on all 100 runs. so far I have used this code: xybat <- subset(bat