I have a small shiny application which plot a graph with a log scale when the variable 'logEch' is "x".
This works:
output$plot <- renderPlot({
logEch<-"x"
Plotfigure(XHydrau,DataQs, ParHydrau, Rescal,logEch)
})
But when I affect the value "x" from the inputcheckbox 'xlog':
output$plot <- renderPlot({
if(input$xlog){logEch<-"x"}
Plotfigure(XHydrau,DataQs, ParHydrau, Rescal,logEch)
})
I obtain the error message: argument is of length zero
What do I need to do to fix this?