[R-sig-Geo] jitter within polygon
Paul Lantos
paul.lantos at duke.edu
Sat Jan 28 07:27:31 CET 2017
Thanks, will take a look!
Paul
From: obrlsoilau at gmail.com [mailto:obrlsoilau at gmail.com]
Sent: Saturday, January 28, 2017 1:03 AM
To: Paul Lantos <paul.lantos at duke.edu>; r-sig-geo at r-project.org; obrl_soil <obrlsoilau at gmail.com>
Subject: RE: [R-sig-Geo] jitter within polygon
Maybe try this sampler - https://gist.github.com/obrl-soil/839b192da46978351733483421db22f8<https://urldefense.proofpoint.com/v2/url?u=https-3A__gist.github.com_obrl-2Dsoil_839b192da46978351733483421db22f8&d=CwMGaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=pCiIbVPBNWU0azo0D48ChUH_fawb-FalNVOf1sUn1r4&m=JsxKvUqShLm0BOKkwOldeOLeDanBw61LAAhZ6snUYW4&s=7U1IpidxWg5KFM1OLw0uCC1KWrtiHLMn9m0W6UfKPtQ&e=>
You’d want to run it multiple times and cycle through the outputs, if I’m interpreting your request correctly.
Cheers
@obrl_soil<mailto:obrlsoilau at gmail.com>
From: Paul Lantos<mailto:paul.lantos at duke.edu>
Sent: Saturday, 28 January 2017 3:30 PM
To: r-sig-geo at r-project.org<mailto:r-sig-geo at r-project.org>
Subject: [R-sig-Geo] jitter within polygon
I am trying to figure out how to randomly jitter points within an overlying polygon structure.
I can easily jitter the points themselves, but I would like this to be constrained by the boundaries of polygons containing the points.
This isn't for visualization - I can do that easily enough in GIS. I actually need to generate coordinates.
Thanks,
Paul
Paul M. Lantos, MD, MS GIS, FIDSA, FAAP, FACP Contact
Departments of Internal Medicine and Pediatrics 919-684-6355 (Pediatric Infectious Diseases)
Pediatric Infectious Diseases 919-681-8263 (Hospital Medicine)
General Internal Medicine paul.lantos at duke.edu<mailto:paul.lantos at duke.edu>
Duke University School of Medicine @PaulLantos
Duke Global Health Institute
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org<mailto:R-sig-Geo at r-project.org>
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list