Re: [R] Election Maps
On Sun, Nov 9, 2008 at 2:07 AM, Duncan Temple Lang [EMAIL PROTECTED] wrote: ( You will first need to have libfftw3 installed. And there is no For those curious, and on Gentoo, emerge sci-libs/fftw. Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail __ R-help@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.
Re: [R] Election Maps
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@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. __ R-help@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.
Re: [R] Election Maps
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@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.
Re: [R] Election Maps
On Fri, Nov 7, 2008 at 7:53 AM, Duncan Murdoch [EMAIL PROTECTED] 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... The source code (in C) for this type of cartogram (Diffusion-based method for producing density equalizing maps) is available from here: http://www-personal.umich.edu/~mejn/cart/download/ Hadley -- http://had.co.nz/ __ R-help@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.
Re: [R] Election Maps
On Fri, Nov 7, 2008 at 4:02 PM, hadley wickham [EMAIL PROTECTED] wrote: The source code (in C) for this type of cartogram (Diffusion-based method for producing density equalizing maps) is available from here: http://www-personal.umich.edu/~mejn/cart/download/ From the documentation [1]: If you wish to make more sophisticated use of this software, such as incorporating it into one of your own programs, then you should read this page [2], which describes the workings in detail. [1] http://www-personal.umich.edu/~mejn/cart/doc/ [2] http://www-personal.umich.edu/~mejn/cart/doc/description.html Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail __ R-help@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.