-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshiny_ui.R
49 lines (44 loc) · 1.13 KB
/
shiny_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
library(shinydashboard)
library(leaflet)
library(DT)
library(plotly)
# user interface
ui <- function() {
header <- dashboardHeader(title = "WGSFD data review 2022")
body <- dashboardBody(
tags$style(type = "text/css", "#vmsMap {height: calc(100vh - 120px) !important;}"),
fluidRow(
column(
width = 8,
box(
width = NULL, solidHeader = TRUE,
leafletOutput("vmsMap", height = "100%")
)
),
column(
width = 4,
box(
width = NULL,
plotlyOutput("legend")
),
box(
width = NULL,
actionButton("submit", label = "Submit"),
uiOutput("fileSelect"),
uiOutput("gearSelect"),
uiOutput("valueSelect"),
splitLayout(
cellWidths = c("50%", "50%"),
selectInput("trans", "Transform", choices = c("sqrt", "cuberoot", "4throot", "log", "identity"), selected = "sqrt"),
selectInput("ncuts", "No. categories", choices = 10:2, selected = 10)
)
)
)
)
)
dashboardPage(
header,
dashboardSidebar(disable = TRUE),
body
)
}