我有一个这样的数据框:
dput(df)
structure(list(date = structure(c(16476, 16477, 16524, 16541,
16595, 16658, 16769, 16804, 16819, 16819, 16828, 16833, 16875
), class = "Date"), y = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L)), .Names = c("date", "y"), row.names = c(NA,
-13L), class = c("tbl_df", "tbl", "data.frame"))
我使用plotly R绘制这样的散点图:
plot_ly(df, x = date, y = y, mode = 'markers')
上述陈述完全正常。
现在,我只想增加散点图中点的大小。尝试这会弄乱整个情节,包括x轴日期刻度:
plot_ly(df, x = date, y = y, mode = 'markers', size = 10)
知道发生了什么事吗?我的版本是:
packageVersion('plotly')
[1] ‘3.5.5’