-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
85 lines (81 loc) · 2.52 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Twitter Kampus Apps"),
# Sidebar
sidebarLayout(
sidebarPanel(
#Drop down input for topic
selectInput("topic",
label = "Topik perguruan tinggi",
choices = c("machung", "gunadarma"),
selected = "machung"),
#Slider input
sliderInput("tweetscount",
"Jumlah tweets yang diambil",
min = 1,
max = 500,
value = 50),
sliderInput("positivecomponentcount",
"Jumlah faktor positif",
min = 2,
max = 5,
value = 3),
sliderInput("negativecomponentcount",
"Jumlah faktor negatif",
min = 2,
max = 5,
value = 3),
sliderInput("sparsethresholdpositive",
"sparse threshold positif",
min = 0.9,
max = 0.99,
value = 0.95),
sliderInput("sparsethresholdnegative",
"sparse threshold negatif",
min = 0.9,
max = 0.99,
value = 0.95)
),
#main UI body
mainPanel(
#Tabs
tabsetPanel(
tabPanel(
"Kelas Positif",
tableOutput('ClassificationTablePositive') #Classfication table
),
tabPanel(
"Kelas Negatif",
tableOutput('ClassificationTableNegative') #Classfication table
),
tabPanel(
"Faktor Positif",
h3("Faktor 1"), #Static Factor table label
tableOutput('PositiveF1Table'), #Factor table
h3("Faktor 2"),
tableOutput('PositiveF2Table'),
h3(textOutput("PositiveF3Text")), #Dinamic Factor table label
tableOutput('PositiveF3Table'),
h3(textOutput("PositiveF4Text")),
tableOutput('PositiveF4Table'),
h3(textOutput("PositiveF5Text")),
tableOutput('PositiveF5Table')
),
tabPanel(
"Faktor Negatif",
h3("Faktor 1"),
tableOutput('NegativeF1Table'),
h3("Faktor 2"),
tableOutput('NegativeF2Table'),
h3(textOutput("NegativeF3Text")),
tableOutput('NegativeF3Table'),
h3(textOutput("NegativeF4Text")),
tableOutput('NegativeF4Table'),
h3(textOutput("NegativeF5Text")),
tableOutput('NegativeF5Table')
)
)
)
)
))