Below are the code sample I found on Chapter 7 Graphics | Mastering Shiny.
ui <- fluidPage(
plotOutput("plot", brush = "plot_brush"),
tableOutput("data")
)
server <- function(input, output, session) {
output$plot <- renderPlot({
ggplot(mtcars, aes(wt, mpg)) + geom_point()
}, res = 96)
output$data <- renderTable({
brushedPoints(mtcars, input$plot_brush)
})
The code is working on shiny desktop; however, it wont generate the table on mobile device.
Please help!