-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
36 lines (29 loc) · 1.07 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)
library(dygraphs)
library(shinyWidgets)
sp500_data <- read.csv("data/sp500_info_big.csv", stringsAsFactors = FALSE)
choices <- sp500_data$ticker
shinyUI(fluidPage(
titlePanel("stockVis"),
sidebarLayout(
sidebarPanel(
helpText("Select a stock to examine.
Information will be collected from yahoo finance."),
#textInput("symb", "Symbol", "SPY"),
selectizeInput("symb", "Symbol", choices, selected = NULL),
dateRangeInput("dates",
"Date range",
start = "2013-01-01",
end = as.character(Sys.Date())),
br(),
br(),
checkboxInput("returns", "Plot log returns",
value = FALSE)
),
mainPanel(
radioGroupButtons(inputId = "duration", choices = c("1day","1w","1mon", "3mon")),
dygraphOutput("dygraph")
)
#mainPanel(plotOutput("plot"))
)
))