-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.R
52 lines (37 loc) · 1002 Bytes
/
app.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
library(shinydashboard)
library(leaflet)
library(RColorBrewer)
library(DT)
library(sp)
library(rgdal)
library(data.table)
library(ggplot2)
library(colourpicker)
library(tidyr)
library(plyr)
library(rgeos)
library(kinship2)
source("./R/functions.R")
# Add header.
source("./R/base_header.R", local = TRUE)
# Add sidebar.
source("./R/base_sidebar.R", local = TRUE)
# Add body.
source("./R/base_body.R", local = TRUE)
ui <- dashboardPage(header, sidebar, body, skin = "black")
#### SERVER ####
server <- function(input, output) {
#### FILE INPUT ####
source("./R/file_input.R", local = TRUE)
#### CREATE VARIABLES ####
source("./R/create_variables.R", local = TRUE)
#### VIEW UPLOADED DATA ####
source("./R/view_data.R", local = TRUE)
#### DYNAMIC UI ####
source("./R/dynamic_ui.R", local = TRUE)
#### LEAFLET MAGIC ####
source("./R/leaflet.R", local = TRUE)
#### PLOT PEDIGREE ####
source("./R/plot_pedigree.R", local = TRUE)
}
shinyApp(ui, server)