Re: [R] Fill a polygon with a pattern

2007-10-08 Thread Duncan Murdoch
On 08/10/2007 5:42 PM, Alberto Monteiro wrote: > What is the simplest (namely: minimum number of libraries or conflicts) > way to fill a polygon with a pattern? > > For example, suppose I have (in a graphic file, like a jpeg) the > drawing of an "X". Then I fill a polygon (like a triangle) with >

Re: [R] Fill a polygon with a pattern

2007-10-08 Thread Greg Snow
The simplest approach using just R is probably to create the background by plotting the grid of your images, then draw with your background color over everything outside the polygon that you want. A possibly simpler approach is to draw the polygon in a solid color, then use an outside program such