0
即时通讯新的情节,我有问题给你。图中密谋R
我有日期和值数据集是这样的:
date value
01/01/2001 5
....
01/01/2010 25
和IM使用此代码绘制它:
plotr<- plot_ly(data,x = ~date, y = ~var,name='X',
type="scatter",mode='lines',
line = list(color = 'rgb(0, 0, 102)', width = 2)) %>%
layout(title = "My first graph",
xaxis = list(title = "date"),
yaxis = list (title = "number"))
plotr
它工作正常,但我想提出一个音符一个日期例如,在2013年他的价值...我搜查plotly网站,我发现它,但我不能查看我的笔记...
https://plot.ly/r/line-charts/
任何人都可以帮忙?
我看不到任何 '文本' 参数中的签名plot_ly函数 – tagoma
@e douard你看到我的网页了吗?它的剧情网站。你会发现它更“广泛地标注带注释的线条” – RMteam
,在上面写下的几行中,没有添加注释的命令。因此,它不会出现在您的图表上。 – tagoma