-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
89 lines (59 loc) · 2.46 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
86
87
88
89
library(shiny)
library(ggplot2)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel("Dashboard Adidas!"),
# Sidebar with a slider input for the number of bins
sidebarLayout(
sidebarPanel(
conditionalPanel(condition = "input.tab1 == 'Adidas'",
dateRangeInput("dates", "Fechas:",
start = "2014-01-01",
end = "2015-03-15"),
#img(src="adidas.jpg", height = 120, width = 180)),
div(img(src="adidas.jpg", height = 120, width = 180),
style="text-align: center;")),
conditionalPanel(condition = "input.tab1 == 'Adidas Visitas'",
radioButtons('años', "Año", unique(as.character(OmarSesiones$Ano))
, selected = NULL, inline = T),
div(img(src="adidas.jpg", height = 120, width = 180),
style="text-align: center;"),
br(),
checkboxGroupInput('fuentes', 'Elige fuentes:',
unique(as.character(OmarSesiones$Fuentes)),
selected = unique(as.character(OmarSesiones$Fuentes)),
inline = F),
checkboxGroupInput('meses', 'Elige meses:',
unique(as.character(OmarSesiones$Mes)),
selected = unique(as.character(OmarSesiones$Mes)))
)),
# Show a plot of the generated distribution
mainPanel(
tabsetPanel(id = "tab1",
tabPanel("Adidas Visitas",
br(),
"Visitas por fuente",
plotOutput('barrasfuentes'),
br(),
dataTableOutput('tablafuentes')),
tabPanel("Adidas",
br(),
"Por fecha exacta",
br(),
br(),
h1("Dashboard modelo"),
br(),
br(),
p("Este es un dashboard modelo para mostrar
para mostrar gráficos de Google Analytics"),
p("Para contactar al creador, visite la web:", a("www.omargonzalesdiaz.com",
href = "www.omargonzalesdiaz.com")),
br(),
p(em("Omar Gonzales")),
p("@Digital Cook House"))
)
)
)
)
)