R shiny, shinyjs, remove plot and draw it again if button is clicked
问题 I have an app that plots the Old Faithul data with k-means clusters once the user clicks on a specific button ("run k-means"). Now, I want to add a button that removes the plot again ("remove plot"). Following Hide/show outputs Shiny R I tried this: library(shiny) ui <- fluidPage( actionButton(inputId = "run_kmeans", label = "run k-means"), actionButton(inputId = "remove_plot", label = "remove plot"), conditionalPanel("output.show", plotOutput("plot")) ) server <- function(input, output) { v