[R-sig-Geo] st_sample with raster

2019-07-29 Thread Tyler Frazier via R-sig-Geo
Hi All, Spatstat::rpoint has an argument f that accepts a pixel image object (class .im) to generate points based on the proportionate probability density of that raster. Just wondering, does sf::st_sample or perhaps another function have a similar available method? Thanks so much! Ty Tyler

Re: [R-sig-Geo] Simple Ripley's CRS test for market point patters --- addendum.

2019-07-29 Thread ASANTOS via R-sig-Geo
Dr. Rolf Turner, Thanks again and your explanations as a personal spatial course for me :) You are very clear, but there are some questions yet. First, these data set is not artificial, I have real coordinates and area of nests of leaf-cutting ants in my example (in my complete data set

Re: [R-sig-Geo] how to specify the size of device so that it fits a SpatialPolygonsDataFrame plot exactly

2019-07-29 Thread Patrick Giraudoux
Le 29/07/2019 à 11:12, Roger Bivand a écrit : On Sun, 28 Jul 2019, Patrick Giraudoux wrote:  Le 28/07/2019 à 17:08, Roger Bivand a écrit : This feels like a section in  ASDAR, ch. 3, and code chunks 24-27 in  https://asdar-book.org/book2ed/vis_mod.R. Could you please try that first  by way

Re: [R-sig-Geo] how to specify the size of device so that it fits a SpatialPolygonsDataFrame plot exactly

2019-07-29 Thread Roger Bivand
On Sun, 28 Jul 2019, Patrick Giraudoux wrote: Le 28/07/2019 à 17:08, Roger Bivand a écrit : This feels like a section in ASDAR, ch. 3, and code chunks 24-27 in https://asdar-book.org/book2ed/vis_mod.R. Could you please try that first by way of something reproducible? Le 28/07/2019 à