I try to make a simple graph with shiny but the code returns me error mesage: "need finite 'ylim' values"
##################################my data
data.frame': 270 obs. of 3 variables:
$ canton : Factor w/ 28 levels "Appenzell Rhodes-Ext.",..: 1 2 3 5 6 4 7 8 9 10 ...
$ variable: Date, format: "2003-06-18" "2003-06-18" "2003-06-18" "2003-06-18" ...
$ value : num 1.89 0 0.36 0.38 1.61 ...
##################################server code
shinyServer(function(input, output) {
output$main_plot <- reactivePlot({
plot(input$dr)
})
})
##################################ui
shinyUI(pageWithSidebar(
headerPanel("test"),
sidebarPanel(
selectInput("dr", "donnees",
list("Canton" = "canton",
"Valeur" = "value",
"Variable" = "variable"))
),
mainPanel(plotOutput("main_plot"))
))
##############################
thank you
ps as you can see my approach is minimalistic
raphael