-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
89 lines (80 loc) · 4.5 KB
/
ui.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
library(shiny)
# Define UI for application that draws a histogram
shinyUI(
navbarPage("iDigBio data exploration",
tabPanel("Loading the data",
h3("Query"),
verbatimTextOutput("queryText")
),
tabPanel("Plot through time",
sidebarLayout(
sidebarPanel(
selectInput("plot_type",
label = "Plot type",
choices = c("Barplot", "Cumulative")),
dateRangeInput("date_range",
label = "Date Range",
start = min(as.Date(hol$datecollected), na.rm = TRUE),
end = max(as.Date(hol$datecollected), na.rm = TRUE)),
selectInput("color_by",
label = "Color by:",
choices = c("none", "institutioncode")),
selectizeInput('institution_code', 'Institution Code',
choices = unique(hol$institutioncode),
multiple = TRUE,
selected = unique(hol$institutioncode))
),
## Show a plot of the generated distribution
mainPanel(
tabPanel("Samples through time", plotOutput("distPlot"))
)
)
),
tabPanel("Missing data",
sidebarLayout(
sidebarPanel(
selectizeInput('institution_code_missing', 'Institution Code',
choices = unique(hol$institutioncode),
multiple = TRUE,
selected = unique(hol$institutioncode)),
checkboxInput("only_missing",
"Remove fields with only missing data",
FALSE),
checkboxInput("no_missing",
"Remove fields with no missing data",
FALSE),
selectizeInput('fields_to_show', 'Fields to show',
choices = names(hol),
multiple = TRUE,
selected = names(hol))
),
mainPanel(
plotOutput("missingData"))
)
),
tabPanel("Unique values",
sidebarLayout(
sidebarPanel(
selectizeInput('institution_code_unique', 'Institution Code',
choices = unique(hol$institutioncode),
multiple = TRUE,
selected = unique(hol$institutioncode)),
checkboxInput("fully_unique",
"Remove fields with only unique values",
FALSE),
checkboxInput("only_one",
"Remove fields with only 1 value",
FALSE),
selectizeInput('fields_to_show_unique', 'Fields to show',
choices = names(hol),
multiple = TRUE,
selected = names(hol))
),
mainPanel(
plotOutput("unique_values")
#verbatimTextOutput("unique_text_values")
)
)
)
)
)