Hi Andy,

I confess that I haven't actually done everything you want to do in this
example, and I can't write the appropriate code off the top of my head, but
sp::spplot should do all of this.

1.  Reproject shapefiles using rgdal::spTransform.  Plot using sp::spplot
2.  I have colored various polygons with careful passing of color vectors
to spplot.  You'll need to inspect the SpatialPolygonsDataFrame object to
see which polygons represent water bodies.  Then pass a vector of colors
with length of the number of polygons.  Specify light gray or light blue
accordingly.  Alternatively you could overplot with a shapefile of water
bodies, specifying the fill to be blue.
3.  graticules can probably be created with the appropriate list passed to
the 'scales' argument of spplot. (See also ?xyplot)
4.  grids are no problem, but I forget exactly how.  Probably see ?xyplot
5.  No problem to add this using spplot.  Examples of this are easy to
google.

I've found Bivand et al's book _Applied Spatial Data Analysis with R_ to be
a great reference for this sort of thing.  Sarkar's book on lattice is
another great reference, since spplot is based on lattice.

I'll be interested to hear what others have to add, because this capability
has been around for a long time and I don't know the capability of more
recent packages, e.g. ggmaps.  Check the archives of this list because
ggmaps has just recently been discussed.

Best,

Matt



On Mon, May 6, 2013 at 12:33 PM, Andy Bunn <Andy.Bunn@wwu.edu> wrote:

> Hello geo folk.
>
> It has been a long time since I last looked into making a pretty map with
> R. And since I last tried map making in R it looks like there has been a
> proliferation of packages for mapping.Wow. Folks have been very busy. It's
> amazing but I confess to being a bit lost. Can somebody advise me on how
> to do the following:
>
> 1. Make a map of the political boundary of Russia in an Albers equal-area
> conic projection. Color it light grey.
> 2. Color the oceans and large water bodies light blue
> 3. Add a graticule around all four edges of the map giving lat/long labels
> every 20 degrees
> 4. Add a grid giving lat/long labels every 20 degrees
> 5. Add some points from SpatialPointsDataFrame
>
> If somebody can advise which is the best package to get going on and a
> sketch of that I can get learning again!
>
> Many thanks, Andy
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Matthew Landis, Ph.D.
Research Scientist
ISciences, LLC
61 Main St., Suite 200
Burlington VT 05401

802-864-2999
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	[[alternative HTML version deleted]]

