-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
43 lines (42 loc) · 1.7 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
ui <- dashboardPage(
dashboardHeader(title = "Basic dashboard"),
dashboardSidebar(
sidebarMenu(
menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")),
menuItem("Widgets", tabName = "widgets", icon = icon("th")))),
## Body content
dashboardBody(
tabItems(
# First tab content
tabItem(tabName = "dashboard",
fluidRow(
box(leafletOutput("mymap", height = 300),
plotOutput("plotdepth")), # a leaflet output
box(
title = "Controls", # name of the box
sliderInput(inputId = "slider", # a slider input
label = "Number of samples for leaflet map:", # text above slider
min = 1, # this is the minimum number to display
max = length(unique(metadata$Sample)), # this is the maxmimum number to display
value = 50, #this is the selected value
step = 1, # the increment (so the user can only select whole numbers)
round = TRUE), # this only displays round numbers on the scale
selectInput(
inputId = "species",
label = "Choose a species to plot",
choices = unique(length$scientific),
selected = NULL,
multiple = FALSE,
selectize = TRUE
),
plotOutput("plotlength")
)
)
),
# Second tab content
tabItem(tabName = "widgets",
h2("Widgets tab content")
)
)
)
)