649 reputation
414
bio website
location
age
visits member for 2 years, 7 months
seen 2 days ago

Write enthusiastic but inelegant code in R, Perl, VBA etc


Sep
24
awarded  Autobiographer
Sep
14
awarded  Popular Question
Jul
7
comment Using R to calculate the area of multiple polygons on a map that intersect with another overlaid polygon
Thanks. I believe there is a require(scales) call in there that will do the trick.
Jul
2
awarded  Curious
Jun
25
awarded  Notable Question
May
28
awarded  Notable Question
Apr
22
comment Creating a loop to predict over small areas
You will probably have more luck in getting an answer over in Stack Overflow. If you decided to post there, read this useful guide to posting R-related questions first.
Apr
22
answered Problem with merging and dissolving a shapefile in R
Apr
17
comment Problem with merging and dissolving a shapefile in R
Use str() to get a better view of the structure of your objects. I haven't looked at it closely but if you convert your SpatialPolygons object to a data frame (which is not a spatial object) I would expect you not to be able to use unionSpatialPolygons. Generally people convert to a df to plot using ggplot towards the end of the workflow. Incidentally if the shapefile data is publicly available a link to the shapefiles would help others help you. Also, if you provide your code in one block that others can copy and paste, it helps a lot.
Mar
12
comment Conversion of Latitude/Longitude to different map projection
Does this question help?
Mar
11
awarded  Yearling
Mar
8
comment How to infer a relationship between two spatial points using R
This does strike me as being more of a statistical issue rather than a GIS question. It involves GIS but the core problem is trying to prove/disprove your hypothesis. I would try Cross Validated instead.
Feb
20
awarded  Nice Answer
Jan
13
comment R or QGIS? Measuring elevation at points on DTM surface
Thanks for that Oscar, both those functions look promising but I can't get them to work with rgl.
Jan
12
comment R or QGIS? Measuring elevation at points on DTM surface
I don't have a list of coordinates defining the points because the points are only discovered from a visual inspection of the plot itself. So I am working backwards from what I would usually be doing. Thanks for the tip on raster.
Jan
12
comment R or QGIS? Measuring elevation at points on DTM surface
The pointer to extract is useful, thank you. Your prediction is incorrect, though only because I did not phrase the question clearly enough. I want to find points that are not necessarily the highest points of the hills or lowest points in the valley, but rather locations determined by local features. E.g. a valley bridge compared to a road junction on the hill. For that reason finding local maxima and minima is probably not going to help. As rgl does allow plot interaction (rotation with mouse) I was hoping there might be a non-obvious way of inspecting/accessing points on the plot.
Jan
12
revised R or QGIS? Measuring elevation at points on DTM surface
Edited text to make purpose of height measurement clear
Jan
12
asked R or QGIS? Measuring elevation at points on DTM surface
Jan
11
comment R, rasterVis and RGL: how to prevent reflective surfaces?
I have experimented with this and it definitely makes a better image. Thanks to yourself and @Jeffrey Evans for the education.
Jan
11
accepted R, rasterVis and RGL: how to prevent reflective surfaces?