Re: [R-sig-Geo] jitter within polygon

2017-01-27 Thread Baldwin, Jim -FS
that might and only use point-in-polygon on the potentially outside points. However, I'd try the point-in-polygon route first and see if it is fast enough first. Jim -Original Message- From: Paul Lantos [mailto:paul.lan...@duke.edu] Sent: Friday, January 27, 2017 9:49 PM To: Baldwin, Jim

Re: [R-sig-Geo] jitter within polygon

2017-01-27 Thread Baldwin, Jim -FS
Sounds like you need a "point-in-polygon" routine to determine if the jittered point is still within the polygon. R has several such routines. Here are two: pnt.in.poly in the SDMTools package point.in.polygon in the sp package Mathematica has several options, too. Jim -Original

Re: [R-sig-Geo] [R-sig-eco] area of range overlap

2015-05-08 Thread Baldwin, Jim -FS
As you've sent the same question to both lists, please report your results to both lists. -Original Message- From: R-sig-ecology [mailto:r-sig-ecology-boun...@r-project.org] On Behalf Of Karla Shikev Sent: Friday, May 08, 2015 10:38 AM To: r-sig-ecol...@r-project.org Subject:

Re: [R-sig-Geo] Fwd: Pie charts on a map. v2

2015-04-12 Thread Baldwin, Jim -FS
I now see the issue: you have lat and long reversed in pie.chart.txt. That puts you in Somolia and Kenya (which is why I suggested mapRegion=Somalia earlier). Jim From: Jue Lin-Ye [mailto:jl.i...@gmail.com] Sent: Sunday, April 12, 2015 9:30 AM To: Baldwin, Jim -FS Cc: r-sig-geo@r-project.org

Re: [R-sig-Geo] Fwd: Pie charts on a map. v2

2015-04-12 Thread Baldwin, Jim -FS
I think there are two issues: 1. You need the rworldxtra package to get the countriesHigh dataset so adding in library(rworldxtra) is necessary. 2. I think you need to focus the figure to a smaller area and add in a statement like mapRegion=Somalia in the mapPies function. Jim From:

Re: [R-sig-Geo] Maximizing likelihood function

2015-03-24 Thread Baldwin, Jim -FS
It sounds like the function .negloglik.boxcox is being fed some parameters it doesn't like (and possibly it doesn't like the starting values). Possibly attempting to divide by zero. So I would first check .negloglik.boxcox with the starting values to see if something other than infinity comes

Re: [R-sig-Geo] Applying a simple math on a big stack takes a long time. How to improve it?

2015-02-06 Thread Baldwin, Jim -FS
rad.mult.fact has length 6 and rad.add.fact has length 5. Does that affect the calculations? Jim -Original Message- From: R-sig-Geo [mailto:r-sig-geo-boun...@r-project.org] On Behalf Of Thiago V. dos Santos Sent: Friday, February 06, 2015 2:07 PM To: R-SIG list Subject: [R-sig-Geo]

Re: [R-sig-Geo] RGEOS error

2014-08-27 Thread Baldwin, Jim -FS
When you also simultaneously post the question elsewhere (http://stackoverflow.com/questions/25531430/rgeos-error-when-using-gunaryunion), please note that to both lists. And that post has more useful information included than the post to this list: Just for dissolving I use the rgeos