Rotate labels using Plotly in R -
im trying put vertically xlab in plot using plotly package. want same "las= 2" on standard r.
i found 'tickangle = 45' ticks, not labels.
any 1 can me?
` plot_ly(x = account$country, opacity = 0.6, type = "histogram", histnorm = "probability", color = c('more 1 account'), colors = 'red') %>% add_trace(x = account2$country, opacity = 0.6, type = "histogram", histnorm = "probability", color = c('account'), colors='blue') %>% layout(barmode="overlay", title = "clients test", xaxis = list(title = "country", color ="red"), yaxis = list(title = "clients"))
`
thank you.
in case, can add tickangle in xaxis:
layout(barmode="overlay", title = "clients test", xaxis = list(title = "country", color ="red", tickangle = 90), yaxis = list(title = "clients"))
Comments
Post a Comment