Browse Source

Correct cut numbers selection.

master
Costa 3 years ago
parent
commit
65b29845dc
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      invivos/app.R

+ 6
- 2
invivos/app.R

@ -114,12 +114,16 @@ server <- function(input, output) {
}) })
output$lowcut<-renderUI({ output$lowcut<-renderUI({
if (!is.null(dades$taula)){ if (!is.null(dades$taula)){
sliderInput("lowcut", "Corte inferior", min=0, max=0.6, step=0.05, value=0)
cut.max<-round(max(dades$taula$Volume, na.rm = T), 2)
step<-round(max(dades$taula$Volume, na.rm = T)/20, 2)
sliderInput("lowcut", "Corte inferior", min=0, max=cut.max, step=step, value=0)
} }
}) })
output$upcut<-renderUI({ output$upcut<-renderUI({
if (!is.null(dades$taula)){ if (!is.null(dades$taula)){
sliderInput("upcut", "Corte superior", min=0, max=0.6, step=0.05, value=0.6)
cut.max<-round(max(dades$taula$Volume, na.rm = T), 2)
step<-round(max(dades$taula$Volume, na.rm = T)/20, 2)
sliderInput("upcut", "Corte superior", min=0, max=cut.max, step=step, value=cut.max)
} }
}) })
output$goButton<-renderUI({ output$goButton<-renderUI({

Loading…
Cancel
Save