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")
>>
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
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 say I ha
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,
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
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
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
7 matches
Mail list logo