[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
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.
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:
> 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
> but I don't see a positive answer...
> Duncan Murdoch
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help