[R-sig-Geo] Mapping multiple attributes at once

Greg Snow Greg.Snow at imail.org
Tue Aug 24 21:43:13 CEST 2010

I don't know ggplot2 well enough to answer about that, but you can use the symbols function to add symbols to an existing plot (which could be the map plotted using maps or maptools/sp etc.).  For even more control/options you could look at my.symbols or subplot in the TeachingDemos package (the help page for subplot shows an example of plotting barcharts onto a map).

For general plotting on maps interest (possibly for when you don't have a shapefile) there is the RGoogleMaps package which will help you get a map (bitmap image, not shapefile) from google or openstreetmaps plot it as the background of a plot, then add points.

Hope this helps,

Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org

> -----Original Message-----
> From: r-sig-geo-bounces at stat.math.ethz.ch [mailto:r-sig-geo-
> bounces at stat.math.ethz.ch] On Behalf Of Thiago Veloso
> Sent: Tuesday, August 24, 2010 9:22 AM
> To: r-sig-geo at stat.math.ethz.ch; Matthew Landis
> Subject: Re: [R-sig-Geo] Mapping multiple attributes at once
>   Hello, Matthew.
>   Just a superb complement of yours.
>   I was about to ask the same question to Pierre and Paul, after
> thanking them for the useful and functional tip. I managed to follow
> the ggplot examples, but a next step would involve plotting my interest
> points over a shape file (state contour).
>   Is that possible?
>   Best wishes,
>   Thiago.
> --- On Tue, 24/8/10, Matthew Landis <landis at isciences.com> wrote:
> From: Matthew Landis <landis at isciences.com>
> Subject: Re: [R-sig-Geo] Mapping multiple attributes at once
> To: r-sig-geo at stat.math.ethz.ch
> Date: Tuesday, 24 August, 2010, 11:47
>  I've been following this topic with some interest, since this is
> something I might like to do fairly often.  I'm not that familiar with
> ggplot2, but it looks really useful.  Is there a way to overplot (or
> underplot) a shapefile (e.g. of coastlines) with the approach suggested
> by Paul?
> Matt
> On 8/24/2010 10:25 AM, Paul Hiemstra wrote:
> > In addition to the reply by Pierre Roudier, take a look at the
> ggplot2
> > pacakge. An example:
> >
> -- ~~~~~~~~~~~~~~~~~~~~~~~~~~
> Matthew Landis, Ph.D.
> Research Scientist
> ISciences, LLC
> 61 Main St. Suite 200
> Burlington VT 05401
> 802.864.2999
> ~~~~~~~~~~~~~~~~~~~~~~~~~~
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 	[[alternative HTML version deleted]]

More information about the R-sig-Geo mailing list