-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
68 lines (62 loc) · 2.04 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
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
library(shiny)
source("init_db.R")
shinyUI(fluidPage(
fluidPage(
titlePanel("WDPA Data Explorer"),
helpText("Based on WDPA version: June-2015"),
fluidRow(
column(8,
# Create a new Row in the UI for selectInputs
fluidRow(
column(3,
selectInput("country",
"Country:",
c("All",
unique(as.character(pa_per_iso3$iso3_country_name))))
),
column(3,
selectInput("type",
"Type:",
c("All",
c("polygon", "point")))
),
column(3,
selectInput("iucn_cat",
"IUCN category:",
c("All",
sort(unique(as.character(pa_per_iso3$iucn_cat)))))
),
column(3,
selectInput("status",
"Status:",
c("All",
sort(unique(as.character(pa_per_iso3$status)))))
)
),
# Create a new row for the table.
fluidRow(
dataTableOutput(outputId = "table")
)
),
column(4,
sidebarPanel(
width = 12,
selectInput("yaxis", "Y-axis:",
choices=c("Percent", "Count", "Area")),
tags$b("Selection:"),
verbatimTextOutput("summaryText"),
hr(),
tags$p("IUCN categories globally and by selected country."),
plotOutput("iucncatPlot"),
hr(),
helpText("PA status globally and by selected country."),
plotOutput("statusPlot")
)
)
)
)
))