Je suis en train de faire une application Shiny, avec higcharter pour les graphiques.
Je voudrais faire un graph dynamique : l'utilisateur choisit une valeur dans un selectinput
et je trace le graph en prenant en y cette valeur de l'input
Code : Tout sélectionner
hchart(dataProd() ,"spline", hcaes(x=PRELEVEMENT,y=input$analyse))%>%
hc_title(text=input$analyse)%>%
hc_tooltip(
crosshairs = TRUE,
borderWidth = 5,
sort = TRUE,
table = TRUE
)%>%
hc_exporting(
enabled = TRUE, # always enabled
filename = "custom-file-name"
)
mais ça me renvoie une erreur :
Problem with `mutate()` input `y`.
[31mx[39m objet 'input' introuvable
[34mi[39m Input `y` is `input$analyse`.
merci d'avance