2
とdygraphsでありdygraphsのためのRパッケージがあり、注釈を追加することが可能である:https://rstudio.github.io/dygraphs/gallery-annotations.html倍数注釈(data.frame付き)R
dygraph(presidents, main = "Quarterly Presidential Approval Ratings") %>%
dyAxis("y", valueRange = c(0, 100)) %>%
dyAnnotation("1950-7-1", text = "A", tooltip = "Korea") %>%
dyAnnotation("1965-1-1", text = "B", tooltip = "Vietnam")
私はそれが可能である方法をしたいと思いますすべてのアノテーションを整理し、単一のdyAnnotationオプションを追加するためにdata.frameを作成します。私は試しました:
dygraph(presidents, main = "Quarterly Presidential Approval Ratings") %>%
dyAxis("y", valueRange = c(0, 100)) %>%
dyAnnotation(c("1950-7-1","1965-1-1"), text = c("A","B"), tooltip = c("Korea","Vietnam"))
これは動作しません。