-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
101 lines (84 loc) · 2.38 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
95
96
97
98
99
100
101
library(shiny)
# Define UI for data upload app ----
ui <- fluidPage(
# App title ----
titlePanel("Similaridade"),
helpText("Cluster"),
# Sidebar layout with input and output definitions ----
sidebarLayout(
# Sidebar panel for inputs ----
sidebarPanel(
# Input: Select a file ----
fileInput(
"file1",
"Importar tabela (xlsx)",
multiple = TRUE,
accept = c(
"text/xlsx",
"text/comma-separated-values,text/plain",
".xlsx"
)
),
# Horizontal line ----
tags$hr(),
# Input: Select method ----
radioButtons(
"binary",
"Dados",
choices = c(
"Binário" = TRUE,
"Não-binário" = FALSE
),
selected = TRUE
),
# Input: Select method ----
radioButtons(
"method.s",
"Algoritmo de similaridade \n (a primeira coluna deve conter o nome das espécies)",
choices = c(
"Euclidiana" = 'euclidean',
"Bray" = 'bray',
"Jaccard" = 'jaccard',
"Morisita" = 'morisita'
),
selected = 'euclidean'
),
# Input: Select método de agrupamento ----
radioButtons(
"method.a",
"Método de agrupamento",
choices = c(
"Single" = "single",
"Complete" = "complete",
"WPGMA" = "mcquitty",
"UPGMA" = 'average',
"Ward.D2" = "ward.D2"
),
selected = "ward.D2"
),
# Horizontal line ----
tags$hr(),
# Input: Select number of rows to display ----
# radioButtons("disp", "Modo de exibição",
# choices = c("Mostrar somente as primeiras linhas" = "head",
# "Mostrar todos os registros" = "all"),
# selected = "head"),
# Horizontal line ----
tags$hr(),
# radioButtons("base", "Base de logaritmo usada no índice de Shannon",
# choices = c("Bits" = "2",
# "Nats" = "exp(1)",
# "Decits" = "10")
#
# ) ,
actionButton("btn_calcular", "Calcular!")
),
# Main panel for displaying outputs ----
mainPanel(tabsetPanel(
tabPanel("Gráfico",
plotOutput("results")),
tabPanel("Entrada de dados",
tableOutput("input_data"))
))
)
)