How to change the x label position

library(ggplot2)
tektel <- read.csv("Satutahun.csv")
View(tektel)
plot.daya <- ggplot(data=tektel,
aes(x = Tanggal, y=Daya, group = 1, sep =","))+
ggtitle ("Daya Listrik Di Tengah Teluk")+
theme(plot.title = element_text(hjust = 0.5), axis.text.x = element_text(angle = 300))
plot.daya + geom_line() + geom_area(colour="black", fill="blue", alpha=.2)

dayalistrik_tektel

i don't understand how to change the angle of my x label and they can't to be see. Please help me to change the angle from my xlabel so they can to see

You can add something like this:

+ theme(axis.text.x = element_text(angle = 90, vjust = 0.5))
1 Like

it's still same nothing change bro

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.