Displaying 2 results from an estimated 2 matches for "add8e6e6".
Did you mean:
add8e666
2017 Apr 24
1
polypath winding rule with transparency
...1, 1,
1, 0,
0, 0), ncol = 2, byrow = TRUE)
xlim <- c(0.24, 1.5) ## ok at xlim[1] = 0.24
## first plot, ok (but also try resizing the window by dragging the left
side out)
plot(pp, main = "winding/transparent", xlim = xlim)
polypath(pp, col = "#ADD8E6E6", rule = "winding")
xlim <- c(0.25, 1.5)
## second plot, not ok
plot(pp, main = "winding/transparent", xlim = xlim)
polypath(pp, col = "#ADD8E6E6", rule = "winding")
Cheers, Mike.
> Cheers, Mike.
>
>
>> For the example you give,...
2016 Aug 04
2
[FORGED] Re: polypath winding rule with transparency
Hi
Just to clarify, I think this IS a problem with grid.path() as well as
polypath().
For the example you give, grid.path() diverts to drawing a polygon
(because there is no 'id' specified), and the NAs in 'x' generate two
separate polygons, which get drawn one on top of the other.
The correct analogy to the polypath() example is ...
x2 <- matrix(x[!is.na(x)], ncol=2)