11
Tôi có một ứng dụng sáng bóng nơi server.r bao gồm đoạn mã sauLàm thế nào tôi có thể truyền dữ liệu giữa các chức năng trong một ứng dụng Shiny
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
})
})
Làm thế nào để xây dựng nó để tôi có thể tham khảo trong reactivePlots df $ đếm vv Tôi đã tạo trong hàm phản ứng, 'dữ liệu'
cổ vũ