-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
37 lines (32 loc) · 1.44 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
library(shiny)
shinyUI(fluidPage(
tabsetPanel(
tabPanel("Family Tree",
collapsibleTreeOutput("tree" ,width = "100%", height = "400px")
),
tabPanel("Filtering Tree",
selectInput(inputId = "treeid",
label = "Choose the Ancestor",
choices = unique(df_fam$child),
selected = first(unique(df_fam$child))),
collapsibleTreeOutput("tree_filter",width = "100%", height = "400px")
),
tabPanel("Who our Ancestor",
fluidRow(
column(width = 3,
selectInput(inputId = "name1",
label = "Select a Name",
choices = unique(df_fam$child),
selected = first(unique(df_fam$child)))
),
column(width = 3,
selectInput(inputId = "name2",
label = "Select a Name",
choices = unique(df_fam$child),
selected = last(unique(df_fam$child)))
)
),
collapsibleTreeOutput("tree_search",width = "100%", height = "400px")
)
)
))