Quantcast
Channel: Rotating x-axis labels and changing theme in ggplot2 - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Julius Vainora for Rotating x-axis labels and changing theme in ggplot2

$
0
0

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

enter image description here


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>