Hi Greg,
On Wed, Dec 2, 2015 at 10:28 PM, Greg Snow <538...@gmail.com> wrote:
>
> Adrian,
>
> Draw the polygon once without the border and the whole in it, then go
> back and draw the border around the outer polygon without any fill.
I thought about it too, but this only works on a Windows machin
On Wed, Dec 2, 2015 at 10:38 PM, Michael Sumner wrote:
>
> On Wed, 2 Dec 2015 at 23:10 Adrian Dușa wrote:
>
>> Dear All,
>>
>> I know how to fill a polygon, using a basic R graphics device:
>>
>> par(mai=c(0, 0, 0, 0))
>> plot(1:100, type="n")
>> polygon(c(20, 80, 80, 20), c(20, 20, 80, 80), col
On Wed, 2 Dec 2015 at 23:10 Adrian Dușa wrote:
> Dear All,
>
> I know how to fill a polygon, using a basic R graphics device:
>
> par(mai=c(0, 0, 0, 0))
> plot(1:100, type="n")
> polygon(c(20, 80, 80, 20), c(20, 20, 80, 80), col="lightblue")
>
>
> But let's say I have an outer polygon like this:
Adrian,
Draw the polygon once without the border and the whole in it, then go
back and draw the border around the outer polygon without any fill.
On Wed, Dec 2, 2015 at 9:31 AM, Adrian Dușa wrote:
> On Wed, Dec 2, 2015 at 5:19 PM, David L Carlson wrote:
>>
>> Using only base graphics, one solut
On Wed, Dec 2, 2015 at 5:19 PM, David L Carlson wrote:
>
> Using only base graphics, one solution would be to embed the inner
polygon in the outer one and turn off the border:
>
> par(mai=c(0, 0, 0, 0))
> plot(1:100, type="n")
> polygon(c(0, 100, 100, 0, 0, 20, 80, 80, 20, 20, 0),
> c(0, 0, 1
015 6:07 AM
To: r-help@r-project.org
Subject: [R] fill the area outside a polygon
Dear All,
I know how to fill a polygon, using a basic R graphics device:
par(mai=c(0, 0, 0, 0))
plot(1:100, type="n")
polygon(c(20, 80, 80, 20), c(20, 20, 80, 80), col="lightblue")
But let's
Dear All,
I know how to fill a polygon, using a basic R graphics device:
par(mai=c(0, 0, 0, 0))
plot(1:100, type="n")
polygon(c(20, 80, 80, 20), c(20, 20, 80, 80), col="lightblue")
But let's say I have an outer polygon like this:
polygon(c(0,100,100,0), c(0,0,100,100))
Is it possible to fill t
7 matches
Mail list logo