Rotate ggplot2 Axis Labels in R (2 Examples) | How to Set the Plot Angle to 90 Degrees

preview_player
Показать описание

R code of this video:

y = c(0.4, 0.3, 0.9, 0.1, 0.7))

library("ggplot2") # Load ggplot2 package

ggplot(data, aes(x, y, fill = y)) + # ggplot2 with default settings
geom_bar(stat = "identity")

ggplot(data, aes(x, y, fill = y)) +
geom_bar(stat = "identity") +

ggplot(data, aes(x, y, fill = y)) +
geom_bar(stat = "identity") +
Рекомендации по теме
Комментарии
Автор

trying to rotate while also using theme_bw(), not working

daemondias