[R-sig-Geo] spplot, polygons, and line density fill

Matthew Landis landis at isciences.com
Mon Apr 25 20:53:53 CEST 2011


Many thanks for these tips Hadley.  It's unlikely that I'll be able to 
dive into this soon, but at least now I have some starting points.

Best,

Matt

On 4/25/2011 2:27 PM, Hadley Wickham wrote:
> Hi Matthew,
>
> The basic problem is that there is no low-level support for pattern
> fills in grid. To resolve this, you need:
>
>   * some way of parameterising pattern fills using other grobs.  A good
> start would be to think about filling a region with regularly spaced
> lines of different angles.
>
>   * some way of clipping that filling pattern to arbitrary polygons
> (not sure how hard that is to do)
>
>   * some way of making it efficient, maybe using rasterGrob.
>
> I haven't looked it into enough to know how hard or each each of these
> steps would be.  You might try also asking on the ggplot2 mailing
> list, because other's may have a better idea than me.
>
> Hadley

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~
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