-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
66 lines (58 loc) · 4.25 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
library(shiny)
library(leaflet)
navbarPage("Rentabilidad de pisos", id="main",
tabPanel("Mapa",
fluidRow(sidebarLayout(
#Panel lateral
sidebarPanel(style='height: 600px',width=3,
fluidRow(column(12, # Rentabilidad
checkboxGroupInput("roiSelectInput",
"Rentabilidad",
choices = c('Inferior al 6%','6-8%','8-9%','9-10%','10-12%','Superior al 12%')))),
fluidRow(column(6, # Preu mín
numericInput("priceMinSelectInput",
"Precio Mín.",
value = 0, min=0, max=300000, step=10000)),
column(6, #Preu max
numericInput("priceMaxSelectInput",
"Precio Máx.",
value = NA, min=0, max=300000, step=10000))),
fluidRow(column(6, # Preu mín
numericInput("rentMinSelectInput",
"Aquiler Mín.",
value = 0, min=0, max=10000, step=100)),
column(6, #Preu max
numericInput("rentMaxSelectInput",
"Aquiler Máx.",
value = NA, min=0, max=10000, step=100))),
fluidRow(column(6, #Size min
numericInput("sizeMinSelectInput",
"Tamaño Mín.",
value = 0, min=0, max=250, step=10)),
column(6, #Size max
numericInput("sizeMaxSelectInput",
"Tamaño Máx.",
value = NA, min=0, max=250, step=10))),
fluidRow(column(12, # Estado
checkboxGroupInput("statusSelectInput",
"Estado",
choiceNames = c('Obra Nueva','Buen Estado','A Reformar'),
choiceValues = c('newdevelopment','good','renew'))))
),
#Panel central
mainPanel(leafletOutput("saleMap", height='600px'))
)),
fluidRow(p(''),
splitLayout(cellWidths = c("2%","50%","2%","31%","10%"),
'',
div(DT::dataTableOutput("filteredRentData"), style='font-size:80%'),
'',
leafletOutput("rentMap", height='400px'),
''
),
p('')
)
),
tabPanel("Viviendas de compra", DT::dataTableOutput("saleData")),
tabPanel("Viviendas de alquiler", DT::dataTableOutput("rentData")),
tabPanel("Información",includeMarkdown("readme_shiny.md")))