R中的直方图

时间:2018-09-27 12:43:45

标签: r histogram plotly

我正在尝试使用R中的图以x轴上的日期和y轴上的值来绘制直方图。数据存储在称为alpha的矩阵中,时间在update_time中,值在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))

0 个答案:

没有答案