I have a shiny app where server.r including the following code
shinyServer(function(input, output) {
data <- reactive(function() {
# some processing
df # dataframe with columns: name,date,count
})
output$plot1 <- reactivePlot(function() {
# boxplot based on df$count grouped by df$name
})
output$plot2 <- reactivePlot(function() {
# linegraph based on x=df$date, y=df$count grouped by df$name
})
})
How do I construct it so that I can reference in the reactivePlots the df$count etc. I have created in the reactive function , 'data'
cheers
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…