ggplotly & Plotly пропущенные значения при раскрытии окна - PullRequest
0 голосов
/ 26 октября 2018

Я создаю блестящее приложение и использую плотно и ggplotly.По какой-то причине, когда я расширяю размер окна, график теряет некоторые точки данных.Ваша помощь очень ценится.enter image description here
enter image description here

 dashboardBody(
      tabItems(
        tabItem(
          tabName = "calendar",
          fluidRow(width = 12,
                   column(width = 8, 
                   box( width = NULL, height = 400, 
              title = "Yang Zhang Estimator", solidHeader = T, status = "danger",

              plotlyOutput("yang_zhang", height = "320px")
            )) ...  


     server <- function(input, output) {

   spy = getSymbols("SPY", from = Sys.Date()-100, to = Sys.Date(), auto.assign =F)

   yz_vol = reactive({
   volatility(spy, n = as.numeric(input$slider_yz), calc = "yang.zhang", N = 252, 
   mean0 = F)
  })

   output$yang_zhang = renderPlotly({
   plot_ly(as.data.frame(yz_vol()), x = as.Date(index(yz_vol())), y = 
   as.numeric(yz_vol()), type = "scatter")

  }) 


 }
...