Help! Why does the same code in R shiny run different results?

Same Code ,
Displays normally for a while, and displays abnormally for a while.
Thank you very much!

can you define/explain 'abnormally' in this context ?

2 Likes

First of all, Thank you very much for responding me.
Then, I have finished the problem by ,
put thie from server
'''
renderUI(selectInput)
'''

into UI directly
'''
column(3,selectInput())

Thanks again, and this solusion reference for everyone, Thanks

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!

why the Y values goes wrong?

Use aes_string rather than aes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.