{"action":"created","issue":{"url":"https://api.github.com/repos/mtennekes/tmap/issues/10","repository_url":"https://api.github.com/repos/mtennekes/tmap","labels_url":"https://api.github.com/repos/mtennekes/tmap/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/mtennekes/tmap/issues/10/comments","events_url":"https://api.github.com/repos/mtennekes/tmap/issues/10/events","html_url":"https://github.com/mtennekes/tmap/issues/10","id":72454072,"number":10,"title":"cartogram","user":{"login":"joelgombin","id":1918735,"avatar_url":"https://avatars.githubusercontent.com/u/1918735?v=3","gravatar_id":"","url":"https://api.github.com/users/joelgombin","html_url":"https://github.com/joelgombin","followers_url":"https://api.github.com/users/joelgombin/followers","following_url":"https://api.github.com/users/joelgombin/following{/other_user}","gists_url":"https://api.github.com/users/joelgombin/gists{/gist_id}","starred_url":"https://api.github.com/users/joelgombin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelgombin/subscriptions","organizations_url":"https://api.github.com/users/joelgombin/orgs","repos_url":"https://api.github.com/users/joelgombin/repos","events_url":"https://api.github.com/users/joelgombin/events{/privacy}","received_events_url":"https://api.github.com/users/joelgombin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mtennekes/tmap/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2015-05-01T15:21:15Z","updated_at":"2016-08-29T19:28:08Z","closed_at":null,"body":"I'm noo much into js, but I wonder if using http://cran.r-project.org/web/packages/V8/vignettes/v8_intro.html and http://prag.ma/code/d3-cartogram/cartogram.js it would be possible to generate a cartogram? Otherwise I guess we could just generate an html page template?"},"comment":{"url":"https://api.github.com/repos/mtennekes/tmap/issues/comments/243228771","html_url":"https://github.com/mtennekes/tmap/issues/10#issuecomment-243228771","issue_url":"https://api.github.com/repos/mtennekes/tmap/issues/10","id":243228771,"user":{"login":"mtennekes","id":2444081,"avatar_url":"https://avatars.githubusercontent.com/u/2444081?v=3","gravatar_id":"","url":"https://api.github.com/users/mtennekes","html_url":"https://github.com/mtennekes","followers_url":"https://api.github.com/users/mtennekes/followers","following_url":"https://api.github.com/users/mtennekes/following{/other_user}","gists_url":"https://api.github.com/users/mtennekes/gists{/gist_id}","starred_url":"https://api.github.com/users/mtennekes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtennekes/subscriptions","organizations_url":"https://api.github.com/users/mtennekes/orgs","repos_url":"https://api.github.com/users/mtennekes/repos","events_url":"https://api.github.com/users/mtennekes/events{/privacy}","received_events_url":"https://api.github.com/users/mtennekes/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T19:28:08Z","updated_at":"2016-08-29T19:28:08Z","body":"Awesome!!! The speed is good; not as fast as cartogram.js (which seems almost real-time), but still as fast or even faster than Scapetoad. \r\n\r\nIt also worked for the world shape (well, without Antarctica) with 30 iterations:\r\n```\r\ndata(World)\r\nwo <- gSimplify(World, 10000)\r\nwo <- SpatialPolygonsDataFrame(wo, World@data, match.ID=F)\r\nwo$pop_est[is.na(wo$pop_est)] <- quantile(wo$pop_est, probs=0.25, na.rm=T)\r\nwo <- wo[!wo$continent %in% c(\"Antarctica\"),]\r\nwo.carto <- cartogram(wo, \"pop_est\", 30)\r\nqtm(wo.carto)\r\n```\r\nHowever, when I increased the number of iterations I get an error after iteration 54: \r\n`rgeos_PolyCreateComment: orphaned hole, cannot find containing polygon for hole at index 4`\r\nDid you take polygon holes into account in this algorithm?\r\n\r\nHow would you like to publish it? As you wrote, you (or we) can publish a stand-alonecartogram package. Another option would be to just include it in tmap. The first seems the most transparent. However, if it's just this single function without additional imports, we could just add it to tmap."}}
{"actor":{"display_login":"mtennekes"}}