-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathui-field-matrices.R
51 lines (51 loc) · 2.02 KB
/
ui-field-matrices.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
get_field_matrix_ui <- function() {
fluidPage(titlePanel("Fieldmap plots"),
sidebarLayout(
sidebarPanel(
selectInput(
"plot_field_matrix",
label = "Choose a field layout:",
choices = "",
selected = NULL
),
selectInput(
"plot_field_type",
label = "Choose fieldmap type:",
choices = c("Vegetation index" = "vegindex",
"Attributes" = "attribute"),
selected = NULL
),
conditionalPanel(
condition = "input.plot_field_type == 'vegindex'",
selectInput(
"plot_field_index",
label = "Choose an index:",
choices = "",
selected = NULL
),
checkboxInput("plot_field_custom", label = "Use a custom vegetation index?", value = FALSE)
),
conditionalPanel(
condition = "input.plot_field_type == 'attribute'",
selectInput(
"plot_field_attribute",
label = "Choose an attribute:",
choices = "",
selected = NULL
)
),
# checkboxInput("plot_field_custom", label = "Use a custom vegetation index?", value = FALSE),
conditionalPanel(
condition = "input.plot_field_custom",
textInput(
inputId = "plot_field_custom_index",
label = "Enter a custom veg index",
value = "(R800 - R650)/(R650 + R800)"
)
),
textInput(inputId = "plot_field_title",
label = "Plot title")
),
mainPanel(plotlyOutput("field_matrix_plot", height = "700px"))
))
}