-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
71 lines (59 loc) · 1.99 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
library(shinydashboard)
library(leaflet)
library(dplyr)
library(leafsync)
library(stringr)
dashboardPage(
dashboardHeader(title = "Workshop Demo"),
## Sidebar content
dashboardSidebar(
sidebarMenu(
menuItem("Fish", tabName = "fish", icon = icon("fish"))#,
# menuItem("Habitat", tabName = "habitat", icon = icon("tree"))
)
),
## Body content
dashboardBody(
tabItems(
# Fish tab content
tabItem(tabName = "fish",
fluidRow(
box(title = "Select data", width = 12,
selectInput(
inputId = "dataset",
label = "Choose a synthesis data-set:",
choices = c("Ningaloo", "Geographe Bay"),
selected = "Ningaloo",
multiple = FALSE,
selectize = TRUE),
uiOutput("fish")
),
tableOutput("data"),
box(
title = "Interactive spatial plots",
width = 12,
column(width = 6, align="center", h3("Smaller than length at Maturity")),
column(width = 6, align="center", h3("Larger than length at Maturity")),
uiOutput("leaflet", height = "500px")
),
box(
title = "Temporal plot by Status - All indicator species",
width = 12,
# column(width = 12, plotOutput("temporal")),
column(width = 12, plotOutput("temporal.status"))
),
box(
title = "Temporal plot by Zone - All indicator species",
width = 12,
column(width = 12, plotOutput("temporal"))#,
# column(width = 12, plotOutput("temporal.status"))
)
)
),
# Second tab content
tabItem(tabName = "habitat",
h2("Habitat tab content to be added...")
)
)
)
)