-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.R
More file actions
executable file
·37 lines (30 loc) · 728 Bytes
/
ui.R
File metadata and controls
executable file
·37 lines (30 loc) · 728 Bytes
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
# Simple Shinny app for creating custom datasets
#for binary classification and clustering
# Author: David Montalván
library(shiny)
# Define UI
shinyUI(fluidPage(
# title
titlePanel("Create your dataset"),
fluidRow(
column(4,
"
Click in the graph for drawing a point.
Select the class for changing the color
")
),
# Side bar panel
sidebarPanel(
downloadButton('downloadData', 'Download data')
),
#Class button
radioButtons(
inputId = 'button_class', label = 'Select a class',
choices = c('Positive', 'Negative')
),
# Show a plot of the generated data
mainPanel(
plotOutput("plot", click = "plot_click", height =600, width = 800)
)
)
)