I am trying to code a histogram using plotly in R with dates on the x axis and values on the y axis. The data is stored in a matrix that is called alpha and has the time in update_time and the values in alpha
p <- plot_ly(clonerAlpha,
         x = ~update_time,
         y = ~alpha,
         name = 'Cloner Alpha',
         type = 'histogram',
         color = I('#054C70')) %>%
  layout(title = "Cloner Alpha", xaxis = ax, yaxis = list(title= "Alpha"),   hovermode = 'x', margin = list(b = 160))
 
    