I apologize for not having a specific reproducible example, and I hope my question is not too generic.
I was wondering whether it is possible in R shiny to use reactiveValues() to remove a plotOutput object. In particular, can I have something like
my_values <- reactiveValues(A = my_plot, B = [something])
if (condition)
{
output$my_plotOutput <- my_values$A
} else
{
output$my_plotOutput <- my_values$B
}
Where the latter option eliminates (or just renders invisible) the plotOutput?
I know I can make the plot NULL, but then the empty rectangle remains.
Thanks in advance.