Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TeeNattapongS committed Jun 3, 2023
2 parents 2733e1a + f7adb1a commit 36b72ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions AquaCropPlotter/inst/shinyapp/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,8 @@ server <- function(input, output, session) {

ggplot_plugin <- reactive({
req(data_prm_combined_plot_rename$data)
withProgress(message = "Plotting", value = 0.7,{
showModal(modalDialog(title = "Processing data...", "Please wait while the data is being processed. ", easyClose=FALSE, footer = NULL))

#initial plot according to selected coloring and group variable
if(length(input$shape_var) > 0 & length(input$col_var) > 0 & length(input$linetype_var) > 0){
p <- ggplot(data = data_prm_combined_plot_rename$data, aes(x = .data[[input$x_var]], y = .data[[input$y_var]], group = interaction(.data[[input$shape_var]], .data[[input$col_var]], .data[[input$linetype_var]]), col = .data[[input$col_var]], fill = .data[[input$col_var]], shape = .data[[input$shape_var]], linetype = .data[[input$linetype_var]]))
Expand Down Expand Up @@ -1705,7 +1706,8 @@ server <- function(input, output, session) {
p <- p + labs(title = paste(input$title_label))
}
print(p)
})

removeModal()
})

#adjust default plot size according to facets
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Status

AquaCropPlotter is currently going through some major updates
**AquaCropPlotter is currently going through major updates but it can still be used. The app will be officially launched in October/November 2023.**

## Background
AquaCrop is the crop-water productivity model developed by the NSL division at FAO. Currently, AquaCrop produces output txt files that can be difficult to process and visualize. We intend to fill that gap by developing an R Shiny app that would automatically read the output simulations of AquaCrop and produce meaningfull plots and statistics that the user can automatically embed into reports.
Expand Down

0 comments on commit 36b72ec

Please sign in to comment.