-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathui.R
35 lines (29 loc) · 999 Bytes
/
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
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Central Limit Theorem"),
sidebarPanel(
radioButtons("dist", "Parent distribution:",
list("Exponential" = "rexp",
"Normal" = "rnorm",
"Log-normal" = "rlnorm",
"Uniform" = "runif",
"Poisson" = "rpois",
"Cauchy (pathological: momentless)" = "rcauchy")),
br(),
sliderInput("n",
"Number of observations from parent distribution:",
value = 500,
min = 2,
max = 1000),
br(),
sliderInput("k",
"Number of random variables sampled from parent distribution:",
value = 10,
min = 1,
max = 100),
br(),
helpText(a(href="https://github.com/tgouhier/climit", target="_blank", "View code"))),
mainPanel(
plotOutput("plot", height="900px")
)
))