-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
40 lines (39 loc) · 1.49 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
library(shiny)
library(DT)
library(tidyverse)
library(dplyr)
library(MASS)
library(shinythemes)
ui <- fluidPage(
theme = shinytheme("cerulean"),
titlePanel("COUNT DATA MODELLING TOOL", windowTitle = "Count data"),
sidebarLayout(
sidebarPanel(fileInput(inputId = "filedata",
label = "Upload data. Choose csv file",
accept = c(".csv")),
uiOutput("checkbox"),
uiOutput("checkbox_for_predictors"),
uiOutput("checkbox_for_response"),
uiOutput("dqc"),
selectInput("model","choose a model",
choices = c('poisson', 'Negative Binomial')),
selectInput("CI","Choose number of CI bands",
choices = c('1','2','3')),
uiOutput("CI_sliders"),
sliderInput("order","Order of polynomial",1,8,5),
actionButton("do","Submit")
),
mainPanel(
tabsetPanel(
tabPanel("Data",DTOutput(outputId = "table")),
tabPanel("Plot",plotOutput("plot")),
tabPanel("Results",downloadButton("downloadData", "Download"),
DTOutput('fitted')),
tabPanel("summary",verbatimTextOutput(outputId = "summary"))
# tabPanel("Prediction",
# textInput("prediction","put a non negative value"),
# verbatimTextOutput("predicted"))
)
)
)
)