inst/shiny-examples/app-pcadapt/server/tab-histogram.R

output$histPlot <- plotly::renderPlotly({
  inFile <- input$file1
  file <- inFile$datapath
  
  if (is.null(inFile)){
    return(NULL)
  }
  
  df <- data.frame(xx = r.x()$x$pvalues)
  plotly::plot_ly(df, x = ~xx, type = "histogram") %>%
    plotly::layout(xaxis = list(title = "p-values"),
                   yaxis = list(title = "Counts"))
})

Try the pcadapt package in your browser

Any scripts or data that you put into this service are public.

pcadapt documentation built on Aug. 29, 2023, 5:07 p.m.