-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
75 lines (70 loc) · 2.91 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
69
70
71
72
73
74
75
rm(list = ls())
# Immediately enter the browser/some function when an error occurs
# options(error = some funcion)
library(shiny)
library(DT)
shinyUI(fluidPage(
titlePanel("Unbiased Recursive Partitioning"),
sidebarLayout(
sidebarPanel(
conditionalPanel(
'input.tab === "Subsetting"',
fileInput('file1', 'Choose CSV File',
accept=c('text/csv',
'text/comma-separated-values,text/plain',
'.csv')),
checkboxInput('header', 'Header', TRUE),
radioButtons('sep', 'Separator',
c(Comma=',',
Semicolon=';',
Tab='\t'),
','),
radioButtons('quote', 'Quote',
c(None='',
'Double Quote'='"',
'Single Quote'="'"),
'"'),
selectizeInput('colDisplay', 'Choose Columns to display', choices = c("data not loaded"), multiple = TRUE),
actionButton("updateColsDisplay", "Update columns to display")
),
conditionalPanel(
'input.tab === "URP"',
selectInput("an",
"Anchor:",
c("data not loaded")),
textInput("control_preds",
"Select predictors that contain the following in their name (Seperate with comma). Enter no text to select all. Alphanumerics only"),
textInput("control_preds_remove",
"Deselect predictors that contain the following in their name (Seperate with comma). Alphanumerics only"),
actionButton("updatePreds", "Update Predictors"),
textInput("title_urp",
"Insert Title"),
# Create a new Row in the UI for selectInputs
actionButton("go", "Plot URP-Ctree"),
checkboxGroupInput('preds', 'Choose Predictors',
c("data not loaded"), selected = c("data not loaded"))
),
conditionalPanel(
'input.tab === "URP-table"',
selectizeInput('tableviewPreds', 'Choose Predictors to display', choices = c("data not loaded"), multiple = TRUE)
)
),
mainPanel(
tabsetPanel(
id = 'tab',
tabPanel('Subsetting',
hr(),
DT::dataTableOutput("subsettingTable"),
downloadButton('downloadSubset', 'Download Subset')
),
tabPanel('URP',
sliderInput("sliderWidth", label = "Adjust width", min = 10, max = 5000, value = 1000),
sliderInput("sliderHeight", label = "Adjust height", min = 10, max = 5000, value = 1000),
plotOutput("plot", inline = TRUE,width='auto',height='auto')),
tabPanel('URP-table',
DT::dataTableOutput(outputId="postUrpTable"),
downloadButton('downloadCtreeSubset', 'Download Ctree Subset'))
)
)
)
))