-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui.R
69 lines (47 loc) · 1.95 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
# ui.R
library(shiny)
library(shinythemes)
fig.width <- 600
fig.height <- 450
shinyUI(fluidPage(theme = shinytheme("cerulean"),
titlePanel("Linear Regression Model"),
#list(tags$head(tags$style("body {background-color: gray; }"))),
sidebarLayout(
sidebarPanel(
# sidepbar panel has the Input
h4("Note that"),
h4("the input data set shuold contain",
"predictor (X) in fisrt column and outcome (Y) in second column",style = "font-family: 'times'; font-si16pt"),
helpText("the type of file you upload should be .csv or .txt",style = "font-family: 'times'; font-si16pt"),
br(),
# Check box for selection of header and type of file option
checkboxInput('header','Header', value = T),
br(),
radioButtons('sep', 'separator', c(comma = ',', semicolon = ';', tab = '\t'), selected = NULL, inline = FALSE),
br(),
# take the file from user
fileInput('data', 'Choose file to upload', multiple = FALSE, accept = c('.text/ comma-separated-values',
'.csv',
'.xlsx',
'.txt',
'.text/ tab-separated-values')),
numericInput("obs", "Observations:", 20,
min = 1, max = 10000),
br(),
wellPanel(
h5("Team Netcloud")
),
br(),br(),br(),br()
),
mainPanel(
tabsetPanel(
tabPanel("Table", tableOutput("table")),
tabPanel("Plot", plotOutput("plot")),
tabPanel("Linear Regression", plotOutput("LinearPlot")),
tabPanel("Summary", verbatimTextOutput("summary")),
tabPanel("Linear Regression Summary", verbatimTextOutput("Linearsummary"))
)
)
)
)
)