[R-sig-Geo] spplot, polygons, and line density fill
Matthew Landis
landis at isciences.com
Fri Apr 8 17:25:58 CEST 2011
In case my request wasn't really clear, let me rephrase:
I'd like to overlay some polygons onto a raster, by plotting with a line
density fill instead of a solid fill, as shown here
http://r-spatial.sourceforge.net/gallery/#fig15.R. Ideally I would be
able to modify the angle of the lines. I know how to do this in base
graphics, but I really need to use spplot (or willing to use ggplot2 if
that can do what I want).
Thanks in advance for any ideas!
Matt
On 4/8/2011 11:21 AM, Matthew Landis wrote:
> Hello again R-sig-geo-ers,
>
> Does anyone know how to convince spplot to create a figure like
> http://r-spatial.sourceforge.net/gallery/#fig15.R
>
> I would like to overlay some polygons onto a raster, and I need to do
> it with spplot for the lattice functionality. I've looked at the help
> and the function code for sp.polygon and grid.polygon, as well as
> searched a bit on Google, but I'm not finding anything promising, but
> then, I'm not that familiar with grid graphics.
>
> Since we're talking about R, I have a hard to time believing the
> answer is "it's not possible".
>
> M
> <http://r-spatial.sourceforge.net/gallery/#fig15.R>
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~
Matthew Landis, Ph.D.
Research Scientist
ISciences, LLC
61 Main St. Suite 200
Burlington VT 05401
802.864.2999
~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the R-sig-Geo
mailing list