I need to flip these plot bar like below :
These my R command :
Number<- c(32.4, 37.0, 21.3, 9.3)
barplot(Number)
barplot(Number, names.arg=c("Minyak Sayur", "Beras", "Terigu", "Kecap"), xlab="Barang", ylab="Persentase", main="Penjualan", col="Green")
Does anyone can help me to solve this ?
FJCC
2
Try setting horiz = TRUE.
Number<- c(32.4, 37.0, 21.3, 9.3)
barplot(Number)
barplot(Number, horiz=TRUE, names.arg=c("Minyak Sayur", "Beras", "Terigu", "Kecap"),
xlab="Barang", ylab="Persentase", main="Penjualan", col="Green")
Got it !!. Thank you so much. dude i appreciate it.
Keep safe & healthy . Love you dudeeeeeeee......