In the reactivePlot
function you can do something like
if (is.null(input$data))
return(NULL)
I would also add a blank entry to the dataset choices ("(Choose one)"=""
) and also have
if (!nzchar(input$dataset))
return(NULL)
in reactivePlot
.