[R] Dividing a map by electoral results with R?

Evelyne1991 evelyne.brie.1 at ulaval.ca
Thu Mar 5 19:09:54 CET 2015


Hi everyone,

I would like to divide a map of Germany vertically by the electoral results
of 2013:

> VoteGermany2013
    Party Result
1 CDU/CSU   49.4
2     SPD   30.5
3   LINKE   10.2
4  GRUENE   10.0

What I'm looking for is very simple: a map divided like a one-bar graph,
with 49.4% of the lenght for CDU/CSU, 30.5% for SPD and so on. It would be
like a single bar divided in parts, but with the form of a country (quite
simple in fact).

For the map, I'm using:

library(maps)
library(mapdata)
map("worldHires","Germany")

Would someone be able to help me?




--
View this message in context: http://r.789695.n4.nabble.com/Dividing-a-map-by-electoral-results-with-R-tp4704211.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list