hrbrthemes
hrbrthemes copied to clipboard
theme_modern_rc has dark strip.text on dark background
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)
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'))
@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.