91 reputation
7
bio website
location
age
visits member for 4 months
seen May 15 at 10:38
stats profile views 4

Feb
21
comment Find which grid cells contain a point
What kind of error do you get? And waht is 'cs' exactly? Cause when I run your code I get an error there.
Feb
21
revised Problems with Combining Layers in QGIS
added 420 characters in body
Feb
21
comment Problems with Combining Layers in QGIS
I have the same problem for some of the northern locations. Maybe the proposed solution under edit by Andre Joost works.
Feb
20
comment Problems with Combining Layers in QGIS
Are these locations correct?
Feb
20
comment Problems with Combining Layers in QGIS
No I don't have any other ideas. Do you have a link to the text-file maybe? I can try to replicate the problem and see how to solve it.
Feb
20
answered Problems with Combining Layers in QGIS
Feb
20
awarded  Commentator
Feb
20
comment Choropleth in R: custom breaks and plotting
Ow yes sorry. Angola is one of the few that is correct. If you look at South Africa, Namibia, or Senegal for instance you'll see that the value as indicated by the colour does not correspond with the value in the data. So Senegal should be a 6(now a 2), South Africa 0 (4) and Namibia also 0 (1). Burundi and Rwanda are also off to name a few other. In the link a plot I made with spplot which shows a map with the correct values. This plot is done directly from the shapefile. So I guess something goes wrong with creating the dataframe.
Feb
20
comment Choropleth in R: custom breaks and plotting
It still plots the wrong values though. Very peculiar.
Feb
20
revised Choropleth in R: custom breaks and plotting
added 1709 characters in body
Feb
18
revised Choropleth in R: custom breaks and plotting
deleted 1598 characters in body
Feb
18
awarded  Editor
Feb
18
revised Choropleth in R: custom breaks and plotting
added 1608 characters in body
Feb
17
awarded  Scholar
Feb
17
accepted Aggregating points to grid using R
Feb
17
comment Choropleth in R: custom breaks and plotting
Yeah I wasn't sure about using ggplot2 since the long/lat data in my shapefile only specifies a point and not the outline of the national borders. So therefore I used these plots in order to create a choropleth map. I'm not very familiar with handling GIS data in R so not sure if I'm overlooking some really straightforward solution for that.
Feb
17
comment Choropleth in R: custom breaks and plotting
Yes, I used the classInt package with fixed breaks (not shown in the script) but the issue with that is that it computes intervals for continuous numerical data. Whereas my intervals are discrete, they represent a frequency of events. Haven't found out yet how to improve upon that.
Feb
17
comment Aggregating points to grid using R
I finally tried it. But the problem with this approach is that it sums all the observations to the polygon. While I ideally want to keep the information on different events over time. But it could be that I did something wrong.
Feb
17
asked Choropleth in R: custom breaks and plotting
Jan
19
awarded  Teacher