Using ValueRange and logscale=TRUE in dygraphs in R -
i've got bit of problem using both valuerange , logscale options dygraph in r. if use logscale=true (in case comment out valuerange option), graph cuts off @ upper bound of 100000, while data goes way 1800000. however, if add valuerange correct upper bound, empty plot , logscale doesn't work. please find code below , snippets of plots well. appreciated! thank you
ass_vs_ngdp <- dygraph(chart_ratio, main="total assets , ngdp", ylab="in £mn") %>% dyaxis("y", valuerange=c(0, 180000)) (j in c(1:nrow(merged_indep))) { ass_vs_ngdp <- ass_vs_ngdp %>% dyannotation(merged_indep$yearonly[j], text=merged_indep$text[j], tooltip = merged_indep$country[j]) } dyoptions(ass_vs_ngdp ,logscale=true)
Comments
Post a Comment