Can someone shed some light on how to order the following bar plot:
day<-c('Sun','Mon','Tue','Wed','Thur','Fri','Sat')
value<-c(13,100,45,32,56,78,65)
df<-data.frame(day,value)
df<-df[order(value),]
ggplot(df) +
geom_bar(aes(y=tot, x=day,fill=day), stat="identity")+
labs(title=paste( "bar plot")) +ylab("y")+xlab("x")+theme(plot.title = element_text(hjust = 0.5))
Thanks!