opps, I have another question, I'm sorry to bother you again.
I used
"""
column(4, selectInput("selectedvariable","Select a variable:", names(data)[6:16]))
"""
when I want to plot by ggplot2
"""
output$ggplot2Group2 <- renderPlot({
g2 <- ggplot(data = speciesGgplot1(),aes(x=OBSWEEK,y=input$selectedvariable,group = COUNTY,color=COUNTY,shape=COUNTY))+
geom_point()+
theme_bw()+
theme(
legend.position = "bottom",
) +
geom_line()
print(g2)
})
"""
the plot is wrong, could you please hepl me? Thanks!