カスタム ラベルを持つ ggplot オブジェクトを使用して、R からプロット プロットを作成しようとしています。
#library('devtools')
#install_github("ropensci/plotly")
library('plotly')
set_credentials_file(username="your_name", api_key="your_key")
py <- plotly()
labels = LETTERS[sample(x=26, size=nrow(iris), replace=T)]
ggiris <- ggplot(iris, aes(Petal.Width, Sepal.Length, color = Species)) + geom_point()
r <- py$ggplotly(ggiris)
r$response
labels
特定のデータポイントの値が取得され、データポイントにカーソルを合わせたときにのみ表示されるようにしたいと思います。