-
Notifications
You must be signed in to change notification settings - Fork 2
/
ui.R
36 lines (33 loc) · 916 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
36
library(shiny)
# Define the overall UI
shinyUI(
# Use a fluid Bootstrap layout
fluidPage(
# Give the page a title
titlePanel("Enter Product"),
# Generate a row with a sidebar
sidebarLayout(
# Define the sidebar with one input
sidebarPanel(
textInput("product", "Product text"),
hr(),
helpText("Enter the text that Pogo should analyze."),
submitButton("Update View")
),
# Create a spot for the barplot
mainPanel(
h4("Product Stem"),
verbatimTextOutput("summary"),
# Show Word Cloud
h4("Twitter Word Cloud"),
plotOutput("plot"),
h4("Twitter Histogram"),
plotOutput("twitterHistogram"),
h4("BestBuy Boxplot"),
plotOutput("BestBuyboxplot"),
h4("NYT sentiment histogram"),
plotOutput("NYT_histogram")
)
)
)
)