Closed elfatherbrown closed 3 years ago
@elfatherbrown thanks! I was not aware of the thematic package. I'll want to have a closer look at it before attempting to address the issue, so please allow a few days for a detailed response. Thanks for raising it.
Looks like this has something to do with the use of colour = 0
, is that a valid thing? If so, what colour
value does it represent? Maybe transparent
?
▶ ag 'colour = 0'
R/geom-alluvium.r
82: colour = 0, fill = "gray", alpha = .5),
R/geom-flow.r
72: colour = 0, fill = "gray", alpha = .5),
R/geom-lode.r
58: colour = 0, fill = "gray", alpha = .5),
I just pushed a fix to thematic for this -- I'm guessing that colour = 0
is equivalent to colour = NA
(or colour = "transparent"
), but let me know if that's a bad assumption
@cpsievert interesting! Thanks. Maybe it was previously but is no longer (having tried a couple of example plots using ggplot2), but it still works within ggalluvial and i don't offhand know why. A new version will be out soon, and i'll make sure to switch the defaults to "transparent"
(and stop misinterpreting 0
) in that release.
I'd like to better understand why colour = "transparent"
has the same effect as colour = 0
, but that colour = NA
(as recommended in the ggplot2 reference) has the effect of erasing (or making transparent?) the interiors of the graphical elements, which should be controlled by fill
, as well as their borders, which are controlled by colour
.
That said, i can still replace 0
with "transparent"
, which is more clear to the user and consistent with other packages.
Description of the issue
Hi. Not sure if this is a bug or what, but the thematic package is really very nice and it would be very cool for it to work with your life-saving package for alluvial plots. Ill be posting the same to thematic's issues. Maybe there will be some interest.
Reprex
Created on 2021-02-25 by the reprex package (v1.0.0)
Sessioninfo