I have seen the use of scale_x_bd
for ggplot2
in the bdscale
package, but I'm not sure how to achieve the same thing in a dygraph
(from the dygraphs
package) or whether it is even possible by hacking the corresponding xts
object?
Asked
Active
Viewed 104 times
2

Palace Chan
- 8,845
- 11
- 41
- 93
-
1Use tidyquant to get a stock time series. It will only have values for when the markets are open. Join that with the dates in your time series. – Harlan Nelson Apr 10 '18 at 02:12
-
@HarlanNelson I already don’t have any values on weekends but the digraph just creates a long flat line connecting across weekends – Palace Chan Apr 10 '18 at 02:14
-
I see the problem. – Harlan Nelson Apr 10 '18 at 02:46