-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove white contour in legend #1
Labels
bug
Something isn't working
Comments
library(ggchicklet)
library(hrbrthemes)
library(ggplot2)
data("debates2019")
spkr_ordr <- aggregate(elapsed ~ speaker, data = debates2019, sum)
spkr_ordr <- spkr_ordr[order(spkr_ordr[["elapsed"]]),]
debates2019$speaker <- factor(debates2019$speaker, spkr_ordr$speaker)
ggplot(debates2019) +
geom_chicklet(
aes(speaker, elapsed, group = timestamp, fill = topic),
colour = "#252a32"
) +
scale_y_continuous(expand = c(0, 0.01), position = "right") +
ggthemes::scale_fill_tableau("Tableau 20") +
coord_flip() +
labs(x = NULL, y = "Minutes Spoken", fill = NULL) +
theme_ft_rc() +
theme(panel.grid.major.y = element_blank()) +
theme(legend.position = "bottom") |
Hey, I'm facing the same issue. I tried to recreate your plot but I only see it with the boundaries:
(On a side note: I was surprised to see that the debates data set apparently doesn't contain any debates from before September 2019 anymore)
Any ideas what could be the issue here? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
ggchicklet
legend on a non-white backgroud, one can see the white contour around the legend, as below.Would it be possible to remove the contour? Or better: to choose the contour color? (Maybe with the new
key_glyph
argument?)Thanks
The text was updated successfully, but these errors were encountered: