-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
25 lines (25 loc) · 1.05 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
library(shiny)
shinyUI(fluidPage(
titlePanel("Endogeneity and Heteroskedasticity"),
sidebarLayout(
sidebarPanel(
sliderInput("obs", "Number of observations:",
value = 500, min = 0, max = 1000, step = 1),
sliderInput("beta0", "beta0 value:",
-10, 10, value = 0),
sliderInput("beta1", "bata1 value:",
-10, 10, value = 0),
selectInput("functionX", "f(x):",
choices = c("x^2" = 1, "sqrt(x)" = 2,
"exp(x)" = 3, "x^(-1)" = 4),
selected = "x^2", multiple = FALSE),
checkboxInput("show_xlab", "Show/Hide X Axis Label", value = TRUE),
checkboxInput("show_ylab", "Show/Hide Y Axis Label", value = TRUE),
checkboxInput("show_title", "Show/Hide Title", value = TRUE)
),
mainPanel(
h3("Scatter Plot: Errors depend on X"),
plotOutput("plot1")
)
)
))