hrbrthemes icon indicating copy to clipboard operation
hrbrthemes copied to clipboard

theme_modern_rc has dark strip.text on dark background

Open jemus42 opened this issue 5 years ago • 2 comments

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)

jemus42 avatar Mar 31 '19 00:03 jemus42

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

jsprecher avatar Dec 31 '19 16:12 jsprecher

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

jemus42 avatar Dec 31 '19 16:12 jemus42