Hello
I just copied this code:
getSymbols(“AAPL”,src=‘yahoo’)
df <- data.frame(Date=index(AAPL),coredata(AAPL))
df <- subset(df, Date > “2017-01-01”)
p <- df %>%
plot_ly(x = ~Date, type=“candlestick”,
open = ~AAPL.Open, close = ~AAPL.Close,
high = ~AAPL.High, low = ~AAPL.Low) %>%
layout(title = “Basic Candlestick Chart”)
print§
How can I avoid weekend gaps in the x axis. I also want to plot 5 min data and the gaps are too large.
Thanks
RP