I'm plotting the age of the participants from a survey i've made. To plot this barchart I'm using this code:
plot_ly(y = dataIdade$total, x = dataIdade$Idade, name = "Idade", type = "bar")
But as you guys can see, the label of X is displaying only some numbers, I need to display all numbers on each drawed bar at least.
To tryout my code you can use this:
dataTeste=data.frame(
individual=paste( seq(1,60), sep=""),
value=sample( seq(10,100), 60, replace=T)
)
plot_ly(y = dataTeste$value, x = dataTeste$individual, name = "Idade", type = "bar")
it's quite close