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

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

$
0
0

The theme theme_minimal changes a lot of things including the changes you made with theme. So that you should do it in the other way:

ToothGrowth$dose <- as.factor(ToothGrowth$dose)ggplot(ToothGrowth, aes(x=dose, y=len)) +  geom_boxplot()  theme_minimal() +  theme(axis.text.x = element_text(angle = 90, hjust = 1)) +

Viewing all articles
Browse latest Browse all 3

Trending Articles



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