X-axis without weekends

Does this work in R ?

I have tried the following and it doesn’t hide the weekends…


library(readr)
library(plotly)

a <- read_csv(“https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv”)

plot_ly(a[450:500,], x = ~Date, y = ~AAPL.High, type=‘scatter’, mode = ‘markers’) %>%
layout(xaxis = list(
rangebreaks= list (
values= c(“2016-12-25”, “2016-12-24”,“2016-12-26”,“2017-01-01”))
))


Output plot is given below

Is this because Rangebreaks are not yet available in R ?