标签: r plotly
使用R plotly包4.5.2我无法让add_annotations尊重size参数。以下代码生成两个大小相同的注释:
plotly
add_annotations
size
require(plotly) p <- plot_ly() p <- add_markers(p,x=~1:2, y=~1:2) p <- add_annotations(p, x=~c(1.1, 2.1), y=~c(1.2, 2.4), text=~c('XXX','YYY'), size=~c(7,20)) p