That's because of the order: theme_minimal
being after theme
overrides the latter. Using
ggplot(ToothGrowth, aes(x = dose, y = len)) + geom_boxplot() + theme_minimal() + theme(axis.text.x = element_text(angle = 90, hjust = 1))
gives
That's because of the order: theme_minimal
being after theme
overrides the latter. Using
ggplot(ToothGrowth, aes(x = dose, y = len)) + geom_boxplot() + theme_minimal() + theme(axis.text.x = element_text(angle = 90, hjust = 1))
gives