[R] Hatched symbols

David Winsemius dwinsemius at comcast.net
Thu Jun 18 22:41:41 CEST 2009


On Jun 18, 2009, at 3:10 PM, Guilhem Faure wrote:

> Hello,
>
> I would like to build rectangles in a plot and use color and  
> different type
> of hatching for filling rectangles. I don't find the way to draw  
> hatchings.
> I'm thinking to build segment by segment inside each rectangle but  
> I'm sure
> that exists a better way to do that. I didn't find any documentation  
> about
> that.
>
>> symbols(1,1,rectangles=cbind(1,1),bg="red", ...     ) # Does it  
>> exist an
> argument to fill symbols in hatching or regular point or plus ... ?
>
> style does not work, density too...

I could not find it looking through the help pages and links, either,  
but try:

  rect(.8,.8,1,1, col=grey(.2), density=20, angle=45)

>
> Does anyone know a solution to do that ?
>
> Thank you for your answer,
>
> Guilhem

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list