I am trying to make an interactive plot in shiny. When I click on the original plot, I want to show info about the point I clicked in a separate fluidRow (another table/plot). I flowed some example online to setup my UI in which the click input variable is called "plot_click". However, I cannot find this input in my server (when I type input$ in server, the input variable list doesn't have plot_click). The code is shown below:
shinyUI(fluidPage(
# Application title
titlePanel("Test Project"),
sidebarLayout(
sidebarPanel(
selectInput("variable", "variable:", var_list),
selectInput("analysis_function", "Function", analy_fun_list) ),
mainPanel(
fluidRow(
column(width = 4,
plotOutput("plot", height=350, click = clickOpts(id="plot_click") )
)
),
fluidRow(
column(width = 6,
verbatimTextOutput("click_info"))
)
)
)
))
And the server code calling the click input is below:
output$click_info <- renderPrint({
nearPoints(unlist(graph_react()[4]), input$plot_click, addDist=TRUE)
})
To highlight, the variable "input$plot_click" in the last line cannot be found.

unlist(graph_react()[4])for example.