[R-sig-Geo] spplot, polygons, and line density fill
hadley at rice.edu
Mon Apr 25 18:07:40 CEST 2011
Unfortunately this type of fill is not currently easy with grid
graphics, which is what both spplot and ggplot2 use.
On Fri, Apr 8, 2011 at 10:25 AM, Matthew Landis <landis at isciences.com> wrote:
> 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!
> 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
>> 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".
> Matthew Landis, Ph.D.
> Research Scientist
> ISciences, LLC
> 61 Main St. Suite 200
> Burlington VT 05401
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
More information about the R-sig-Geo