-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathui.R
36 lines (32 loc) · 1.03 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
library(shiny)
# Define UI for miles per gallon application
shinyUI(fluidPage(
# Application title
titlePanel("Interactive visualization of non-linear logistic regression decision boundaries"),
# Sidebar with controls to select the variable to plot against
# mpg and to specify whether outliers should be included
sidebarLayout(
sidebarPanel(
selectInput("pattern", "Pattern:",
c("Moon" = "moon",
"Circle" = "circle")),
sliderInput("degree",
"Degree polynomial:",
min = 1,
max = 20,
value = 1),
sliderInput("lambda",
"Lambda:",
min = 1,
max = 10,
value = 1),
selectInput("opt", "Optimization algorithm:",
c("BFGS Quasi-Newton" = "BFGS",
"Nelder-Mead" = "Nelder-Mead",
"Conjugate Gradient" = "CG"))
),
mainPanel(
plotOutput("da.plot")
)
)
))