hrbrmstr / hrbrthemes

:lock_with_ink_pen: Opinionated, typographic-centric ggplot2 themes and theme components
Other
1.23k stars 96 forks source link

theme_modern_rc has dark strip.text on dark background #39

Open jemus42 opened 5 years ago

jemus42 commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

@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.