Note that there are some explanatory texts on larger screens.

plurals
  1. POPlot points map of population
    text
    copied!<p>I want to plot kind of isarhytmoc points <a href="http://statistik-stuttgart.de/wp-content/uploads/2013/01/map-raw-1024x952.png" rel="nofollow">map</a> like in this <a href="http://www.r-bloggers.com/r-isarithmic-maps-of-election-data-12/" rel="nofollow">tutorial</a>, but with population data. However, unfortunately, I have no enough skill and only came with such code:</p> <pre><code>require(sp) require(rgdal) require(RColorBrewer) require(ggplot2) library(plyr) library(maptools) library(rgeos) require(gpclib) gpclibPermitStatus() gpclibPermit() rus&lt;-url("http://www.filefactory.com/file/4h1hb5c1cw7r/n/RUS_adm1_RData") print(load(rus)) proj4.str &lt;- CRS("+init=epsg:3413 +lon_0=105") gadm.prj &lt;- spTransform(gadm, proj4.str) popul &lt;- read.csv2(file="C:\\unempl11.txt", header = TRUE, sep = ";",quote = "", dec=",", stringsAsFactors=F) df &lt;- fortify(gadm.prj, region = "ID_1") df2 &lt;- merge(df, gadm.prj, by.x="id", by.y="ID_1") p &lt;- ggplot(df2, aes(x = long, y = lat, group=group)) + geom_point(data = popul, mapping = aes(x=lon, y=lat, colour=abs), size = 3, alpha = 0.8) + scale_colour_gradient2(name = "Population", low = "darkred", mid = "white", high = "blue", guide = "colorbar") + ggtitle("Population in Russia)") p + geom_path(data = df2, mapping = aes(x=long, y=lat, group=group), size = 0.125) </code></pre> <p><a href="http://files.mail.ru/D094C375C3AD4F81940A7F34D2247321" rel="nofollow">Here is the data I use</a>, if anyone can help me with some ideas i will be grateful.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload