2
는 dygraphs에 대한 R의 패키지가, 그리고 주석을 추가 할 수 있습니다 : 그것은 가능한 방법으로 https://rstudio.github.io/dygraphs/gallery-annotations.html배수 주석
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"))
그것은 작동하지 않는다.