-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui.R
94 lines (79 loc) · 2.53 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
90
91
92
93
94
ui <- fluidPage(
useShinyalert(),
# Título do app. ####
titlePanel("RGIS"),
# Barra lateral com as definições do input e do output. ####
sidebarLayout(
# Barra lateral para os inputs. ####
sidebarPanel(width = 3,
#inserindo arquivo csv ####
fileInput(
"file1",
"Tabela (.csv)",
multiple = FALSE,
accept = c("text/csv",
"text/comma-separated-values,text/plain",
".csv"),
width = "100%",
buttonLabel = "Arquivo",
placeholder = "Insira arquivo csv"
),
textInput(inputId="lon", label = "lon", value = "lon", width = "25%"),
textInput(inputId="lat", label = "lat", value = "lat", width = "25%"),
# Input: Checkbox if file has header ####
checkboxInput("header", "Cabeçalho", TRUE),
# Input: Select separator ####
radioButtons(
"sep",
"Separador de coluna",
choices = c(
" ; " = ";",
" , " = ",",
"tab" = "\t"
),
inline = T,
selected = ","
),
actionButton("plot_point", "OK"),
# Horizontal line
tags$hr(),
# Main panel for displaying outputs
tabPanel("Head da tabela",tableOutput("df")),
# Horizontal line
tags$hr(),
#inserindo arquivo shape ####
textInput("shape_path", "Shape path", "./Exemplos/biomas.shp"),
#fileInput("file3", "Vetor", multiple = TRUE, accept = c('.shp','.dbf','.sbn','.sbx','.shx','.prj')),
selectInput("cor", "Cor", choices = c('black', "green", "blue", "red", "white", "darkgreen", "darkblue", "darkred"), width = "50%"),
actionButton("plot_shape", "OK"),
# Horizontal line
tags$hr(),
#inserindo arquivo raster ####
fileInput(
"file2",
"Raster",
multiple = FALSE,
accept = c("image/tiff",
".tiff",
".asc",
".bil"),
buttonLabel = "Arquivo",
placeholder = "Insira o raster"
),
actionButton("plot_raster", "OK"),
actionButton("add_point", "Add"),
#barra da tranparencia ####
sliderInput(inputId = "alpha",
label = "Transparencia do raster",
min = 0,
max = 1,
value = 0.5)
),
# Painel principal para mostrar os outputs.####
mainPanel(
h3("Mapa"),
# Output: MAPA
leafletOutput("mymap",height = 800)
)
)
)