-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.R
42 lines (33 loc) · 875 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
library(future)
library(shiny)
plan(multiprocess)
ui <- fluidPage(
# Application title
titlePanel("Old Faithful Geyser Data"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
sliderInput("bins",
"Number of bins:",
min = 1,
max = 50,
value = 30),
actionButton("MakePlot", "MakePlot")
),
# Show a plot of the generated distribution
mainPanel(
fluidRow(
column(6, plotOutput("distPlot")),
column(6, plotOutput("FuturePlot")))
)
)
)
# Define server logic required to draw a histogram
source("helpers.R")
source("sub1.R")
source("sub2.R")
server <- function(input, output, session) {
subServer1(input, output, session)
subServer2(input, output, session)
}
shinyApp(ui = ui, server = server)