OT question: can R produce Cartograms? Here's an example of World Population: http://www.worldmapper.org/display.php?selected=2
This might make Texas smaller and Rhode Island larger.... Robert Farley LACMTA -----Original Message----- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Greg Snow Sent: Thursday, October 13, 2011 11:28 To: Michael Charles Bailey I; r-help@r-project.org Subject: Re: [R] US States percentage change plot Unless your audience is mainly interested in Texas and California and is completely content to ignore Rhode Island, then I would suggest that you look at the state.vbm map in the TeachingDemos package that works with the maptools package. The example there shows coloring based on a variable. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Michael Charles Bailey I > Sent: Wednesday, October 12, 2011 6:46 PM > To: r-help@r-project.org > Subject: [R] US States percentage change plot > > Hi, I would like to make a plot of the US states (or lower 48) that are > colored based upon a percentage change column. Ideally, it would > gradually > be more blue the larger the positive change, and more red the more > negative > is the change. > > The data I have looks like: > > State Percent.Change > 1 Alabama 0.004040547 > 2 Alaska -0.000202211 > 3 Arizona -0.002524567 > 4 Arkansas -0.008525333 > 5 California 0.001828754 > 6 Colorado 0.011116150 > > I have read help for the maps library and similar plots online but > can't > grasp how to map the percentage.change column to the map. thank in > advance, > > Michael Bailey > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. ______________________________________________ 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.