-
Notifications
You must be signed in to change notification settings - Fork 2
/
ui-pca-plots.R
50 lines (50 loc) · 1.6 KB
/
ui-pca-plots.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
get_pca_plot_ui <- function() {
fluidPage(
titlePanel("PCA Plots"),
sidebarLayout(
sidebarPanel(
selectInput(
"plot_pca_type",
label = "Visualize PCA plot by outliers or attributes?",
choices = c("Outliers" = "outliers", "Attributes" = "attributes"),
selected = "outliers"),
conditionalPanel("input.plot_pca_type == 'attributes'",
selectInput(
"plot_pca_color",
label = "Color markers by attribute?",
choices = "",
selected = NULL
),
selectInput(
"plot_pca_size",
label = "Map marker size to attribute?",
choices = "",
selected = NULL
)
),
conditionalPanel(
"input.plot_pca_type == 'outliers'",
sliderInput("plot_pca_outlier_sd", label = "Standard devs",
min = 1L, max = 10L, step = 1L, value = 3L)),
# TODO: Add explaining text here:
checkboxInput(
inputId = "plot_pca_scale",
label = "Scale",
value = TRUE
),
checkboxInput(
inputId = "plot_pca_center",
label = "Center",
value = TRUE
),
textInput(
inputId = "plot_pca_title",
label = "Set custom plot title"
)
),
mainPanel(
plotlyOutput("pca_plot", height = "700px")
)
)
)
}