0

I made some figures with dygraph and I'm happy with them but since I put them side by side in my latex / pdf, the size of the axis tick marks (the numbers at y axis, and some months at x axis: Jan 2017 Apr 2017 Jul 2017) are to small. I simply want to increase them and don't succeed...I could put them apart with pixelsPerLabel= 100, so there would be place for bigger letters, but I can't use axisLabelFormatter

here is my function

dygraph_dfm2 <- function(xts_object, show = "never", impulse = "2016-04-01", legend_compl = "", last_data = last_data_point , title = "some title"){
  dygraph(xts_object,main = title)%>%
    dyOptions(digitsAfterDecimal = 3,drawAxesAtZero = TRUE) %>%     # dyOptions(dygraph,digitsAfterDecimal = 5) ... dygraph fills the graph!
      # dyAxis("y", label = "AAA", axisLabelWidth = 34) %>%
      # dyAxis("x", label = "AAA",axisLabelWidth = 34) %>%
      # dyAxis("x", label = "xxx") %>%
dySeries(colnames(xts_object)[1], strokePattern = "solid", strokeWidth = 2, color = "blue")%>%
dyEvent(last_data, paste(last_data_point), labelLoc = "bottom")%>%
dyLegend(show = show) %>%
dyShading(from = "1960-04-01", to = "1961-02-01") %>%
dyShading(from = "1969-12-01", to = "1970-11-01") %>%
dyShading(from = "1973-11-01", to = "1975-03-01")%>%
dyShading(from = "1980-01-01", to = "1980-07-01")%>%
dyShading(from = "1981-07-01", to = "1982-11-01")%>%
dyShading(from = "1990-07-01", to = "1991-03-01")%>%
dyShading(from = "2001-03-01", to = "2001-11-01")%>%
dyShading(from = "2007-12-01", to = "2009-06-01")
}

How can I increase them to 1.5 size etc? Thanks!

4554888
  • 87
  • 1
  • 11
  • I found myself the answer and posted it here: https://stackoverflow.com/questions/38429892/dygraph-with-r-how-to-use-axislabelformatter-for-labels-character-size/45043877#45043877 – 4554888 Jul 11 '17 at 20:28
  • Possible duplicate of [For loop over dygraph does not work in R](https://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r) – Dijkgraaf Sep 18 '17 at 19:59
  • no duplicate since the function works... – 4554888 Dec 28 '17 at 04:20

0 Answers0