How can I use a reactivevalue in the plot1 and use object of X in plot2. In the other words I want to get the value of x and pass it into another function outside of plot1. The code in the Server.R is as following:
output$plot1<-renderPlot({
x<-reactiveValue(o="hello")
)}
outpu$plot2<-renderplot({
print(input$x$o)
)}
when I run it it does not show anything in the RStudio console.