Displaying 2 results from an estimated 2 matches for "bundesland".
Did you mean:
bundesbank
2005 Sep 08
1
Using R map data to determine associated state for a coordinate?
Hi!
I have no idea if this is maybe an easy task utilizing
R since I read there is
geographical map data in some package:
I have a huge number of geographical points with their
coordinates in Germany.
Now I want to determine for each point in which
"Bundesland" = state it is located.
Can anybody tell me if this is doable relatively easy
in R and if so give me
some hints or links how to do it?
Thanks a million,
Werner
2013 Jun 06
1
Error invalid graphics state using text()
...orBrewer)
library(rgeos)
library(pixmap)
library(classInt)
library(sp)
NUTS2<-readShapePoly("xxx.shp")
shareub2012 <- read.csv("xxx.csv", header=TRUE, sep = ";", dec =
",",stringsAsFactors=F)
mergeshareub2012 <- merge(shareub2012, NUTS2, by.x = "Bundesland", by.y =
"NAME" )
sortmergeshare2012 <- mergeshareub2012[order(mergeshareub2012$ID),]
col_no <- as.factor(as.numeric(cut(sortmergeshare2012$x, c(0, .075, .125,
.25, .50))))
levels(col_no) <- c("< 7,5%", "7,5-12,5%", "12,5-25%","> 25%&...