Quick question that I haven't been able to answer from after much searching around. I have a named list being used as the options for a radiobutton selection. Is it right that the reactive selection only outputs the value, and not the name as well?
I want to use the value name as the title for a ggplot and can probably setup a lookup to re-match this, but just wanted to check there isn't a way to just get it directly from the reactive variable.
Thanks for any thoughts.
List of Options
graph_options <- c("ukhpi", "avprice", "volume")
graph_option_names <- c("House Price Index", "Average Price", "Volume of Transactions")
graph_options <- setNames(graph_options, graph_option_names)
Radio Buttons Code in UI
radioButtons("metric",
"Select Metric",
choices = graph_options