-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
38 lines (28 loc) · 985 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
library(shiny)
library(quantmod)
source("server.R")
library(readxl)
YahooTickersBrazil <- read_excel("YahooTickersBrazil.xlsx")
ui <- fluidPage(
titlePanel("WebApp Ativos Brasil"),
sidebarLayout(
sidebarPanel(
helpText("Selecione o ativo que deseja analisar. A informação será coletada do Yahoo Finanças."),
selectInput("symb",
label = "Symbol",
choices = unique(YahooTickersBrazil$Symbol),
selected = "PETR4.SA"),
dateRangeInput("dates",
"Date range",
start = "2020-01-01",
end = as.character(Sys.Date())),
HTML("
<h6>Autor: <a href='https://github.com/melogabriel' target='_blank'>github.com/melogabriel</a></h6>
<h6>e-mail: <a href='mailto:[email protected]'>[email protected]</a></h6>
")
),
mainPanel(plotOutput("plot"))
)
)
# Run the app
shinyApp(ui, server)