Skip to content
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

theme_modern_rc has dark strip.text on dark background #39

Open
jemus42 opened this issue Mar 31, 2019 · 2 comments
Open

theme_modern_rc has dark strip.text on dark background #39

jemus42 opened this issue Mar 31, 2019 · 2 comments

Comments

@jemus42
Copy link
Contributor

jemus42 commented Mar 31, 2019

Strip text on facetted plots is a bit hard to make out.

library(ggplot2)
library(hrbrthemes)
packageVersion("hrbrthemes")
#> [1] '0.6.0'

ggplot(mtcars, aes(mpg, hp)) +
  geom_point() +
  facet_wrap(~cyl) +
  theme_modern_rc() +
  labs(title = "Look, a plot",
       subtitle = "Something's off though",
       caption = "Wher's my strip text?")

Created on 2019-03-31 by the reprex package (v0.2.1)

@jsprecher
Copy link

You can add a theme element to change the color of the text.

library(ggplot2)
library(hrbrthemes)
packageVersion("hrbrthemes")
#> [1] '0.6.0'

ggplot(mtcars, aes(mpg, hp)) +
geom_point() +
facet_wrap(~cyl) +
theme_modern_rc() +
labs(title = "Look, a plot",
subtitle = "Something's off though",
caption = "Wher's my strip text?") +
theme(strip.text = element_text(color = 'white'))

image

@jemus42
Copy link
Contributor Author

jemus42 commented Dec 31, 2019

@jsprecher I am aware, but I raised this issue so that the strip text could be changed to be readable by default, and not require a manual tweak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants