ggplot2 theme: axis.text not inheriting from text?
问题 The current documentation for theme element axis.text says: axis.text tick labels along axes (element_text; inherits from text) but it seems like the inheritance isn't working. This code gives the plot below, with axis text in grey. library(ggplot2) ggplot(data.frame(x=1:10, y=1:10), aes(x, y)) + geom_point(color='red') + theme(rect = element_rect(fill = 'black'), line = element_line(color = 'white'), text = element_text(color = 'blue'), panel.background = element_blank()) Setting axis.text