一个很好的例子是此链接中的第二个图表(图表上方包括代码):https://rstudio.github.io/dygraphs/gallery-axis-options.html
代码复制如下:
dygraph(AirPassengers, main = "Airline Passengers / Month") %>%
dyAxis("x", drawGrid = FALSE) %>%
dyAxis("y", label = "Passengers (Thousands)") %>%
dyOptions(includeZero = TRUE, axisLineColor = "navy", gridLineColor = "lightblue")
这张图在1950年和1960年之间有很长的差距,这看起来有些奇怪。如何通过单独标注每年来获得R来填写?