Skip to content

Commit be897bc

Browse files
author
Ruman Gerst
committed
* Reorganized agglomerative clustering plot UI
1 parent 1987d12 commit be897bc

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ README.html
77
README_files
88
figure
99
packrat/lib*/
10-
packrat/src/
1110
.Rprofile

packrat/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
packrat.zip
2+
src/
3+
lib*/

plotAgglomerativeClusteringPlot.R

+10-13
Original file line numberDiff line numberDiff line change
@@ -82,25 +82,22 @@ plotAgglomerativeClusteringPlotSettingsUI <- function(id) {
8282
return(bsCollapse(
8383
bsCollapsePanel(recommendedDataText("Plot type"),
8484
value = "plottype",
85-
selectizeInput(ns("plottype"), "", choices = plotAgglomerativeClusteringPlotUI.plotTypes)
85+
selectizeInput(ns("plottype"), "Plot type", choices = plotAgglomerativeClusteringPlotUI.plotTypes),
86+
conditionalPanel(paste(conditionalPanel.equals(ns("plottype"), "'cor.pearson'"), "||", conditionalPanel.equals(ns("plottype"), "'cor.spearman'")),
87+
selectizeInput(ns("heatmap.dendrograms"), "Visible dendrograms", choices = plotAgglomerativeClusteringPlotUI.dendrogramPositions),
88+
selectizeInput(ns("heatmap.density.info"), "Density info", choices = plotAgglomerativeClusteringPlotUI.heatmapDensityInfo),
89+
selectizeInput(ns("heatmap.trace"), "Trace line", choices = plotAgglomerativeClusteringPlotUI.heatmapTrace),
90+
colourInput(ns("heatmap.tracecol"), "Trace line color", value = "cyan", allowTransparent = T))
8691
),
8792
bsCollapsePanel(recommendedDataText("Hierarchical clustering"),
8893
value = "hierarchical.clustering",
8994
selectizeInput(ns("method.dist"), "Distance method", choices = plotAgglomerativeClusteringPlotUI.dist.methodsSelection),
9095
selectizeInput(ns("method.hclust"), "Clustering method", choices = plotAgglomerativeClusteringPlotUI.hclust.methodsSelection)),
91-
bsCollapsePanel(optionalDataText("Heatmap"),
92-
value = "heatmap",
93-
selectizeInput(ns("heatmap.dendrograms"), "Visible dendrograms", choices = plotAgglomerativeClusteringPlotUI.dendrogramPositions),
94-
selectizeInput(ns("heatmap.density.info"), "Density info", choices = plotAgglomerativeClusteringPlotUI.heatmapDensityInfo),
95-
selectizeInput(ns("heatmap.trace"), "Trace line", choices = plotAgglomerativeClusteringPlotUI.heatmapTrace),
96-
colourInput(ns("heatmap.tracecol"), "Trace line color", value = "cyan", allowTransparent = T),
97-
hDivider(),
98-
tags$label("Heatmap color"),
99-
gradientEditorUI(ns("heatmap.color"))
100-
),
101-
bsCollapsePanel(optionalDataText("Sample Visualization"),
96+
bsCollapsePanel(optionalDataText("Visualization"),
10297
value = "visualization",
103-
visualsEditorUI(ns("visuals"))),
98+
conditionalPanel(paste(conditionalPanel.equals(ns("plottype"), "'cor.pearson'"), "||", conditionalPanel.equals(ns("plottype"), "'cor.spearman'")), gradientEditorUI(ns("heatmap.color"))),
99+
conditionalPanel(paste(conditionalPanel.equals(ns("plottype"), "'dendrogram.horizontal'"), "||", conditionalPanel.equals(ns("plottype"), "'dendrogram.vertical'")), visualsEditorUI(ns("visuals")))
100+
),
104101
bsCollapsePanel(optionalDataText("General settings"),
105102
value = "generalsettings",
106103
generalPlotSettingsInput(ns("plot.settings"),

0 commit comments

Comments
 (0)