[R] Election Maps
Duncan Temple Lang
duncan at wald.ucdavis.edu
Sun Nov 9 02:07:29 CET 2008
I've been marginally curious about this since 2004, and
spent a little time providing the beginnings of a port
which gives the basic facilities of Mark Newman's code
in R. There is a package on the Omegahat repository
via
install.packages("Rcartogram", repos = "http://www.omegahat.org/R",
type = "source")
( You will first need to have libfftw3 installed. And there is no
Windows build yet. )
Due to very limited time availability, it is currently reasonably
bare-bones, following the interface provided by Mark, but from within R
and providing a predict() method. But there may be problems, and I
haven't had the time to work on creating the map of the US states.
Feedback, changes, enhancements, examples, etc. encouraged.
D.
Duncan Murdoch wrote:
> On 11/7/2008 8:31 AM, roger koenker wrote:
>> Those of you with an interest in the US election and/or
>> statistical graphics may find the maps at:
>>
>> http://www-personal.umich.edu/~mejn/election/2008/
>>
>> interesting.
>
>
> Nice stuff. Do you know if anyone has ported the cartogram code to R? I
> see a question on the list a couple of years ago
>
> https://stat.ethz.ch/pipermail/r-help/2006-May/106501.html
>
> but I don't see a positive answer...
>
> Duncan Murdoch
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list