Trying to use R Plotly to graph bar chart. I need the chart x-axis ordered by q_order but need to have the x-axis display the labels from data called title. How would I do this?
Data
Chart
Code
fig <- plot_ly(
data = ybq,
x = ~q_order,
y = ~t_put,
type = "bar"
) %>%
layout(xaxis=list(
autorange="reversed",
type="category"
))