-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
42 lines (32 loc) · 1 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
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(leaflet)
if(!exists("getShipTypes", mode="function")) source("db.R")
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel("Marine ships observations."),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
selectInput(inputId = "select_ship_types", label = strong("Ship Type"),
choices = getShipTypes()
),
selectInput(inputId = "select_ship_names", label = strong("Ship Name"),
choices = c()
)
),
mainPanel(
textOutput("observation_description"),
leafletOutput("mymap"),
tableOutput("data")
)
)
))