Skip to content

Commit 379cb3e

Browse files
authored
Update server.R
1 parent 82d269f commit 379cb3e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

fea/tab_SCORES/server.R

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ plot_gset_heatmap <- function(scores, ids, cluster, scale, selected_cols, groups
108108
if (scale == "none") {legend_name <- "log2(counts + 1)"
109109
} else {legend_name <- "Z-score"}
110110

111-
ggheatmap::ggheatmap(data = mat,
111+
p <- ggheatmap::ggheatmap(data = mat,
112112
color = colorRampPalette(c( "#0000ff","#fad541","#b60404"))(100),
113113
cluster_rows = clust_rows,
114114
cluster_cols = clust_cols,
@@ -117,19 +117,19 @@ plot_gset_heatmap <- function(scores, ids, cluster, scale, selected_cols, groups
117117
text_position_rows = "left",
118118
annotation_cols = col_metaData,
119119
annotation_color = col
120-
) #%>% ggheatmap_theme(1:2,theme =list(
121-
122-
# theme(axis.title.x=element_blank(),
123-
# text = element_text(size=20),
124-
# axis.text.x=element_blank(),
125-
# axis.ticks.x=element_blank()),
126-
#
127-
# theme(
128-
# legend.title = element_text(size = 18),
129-
# legend.text = element_text(size= 18))
130-
#)
131-
#)
132-
120+
)
121+
122+
g <- ggheatmap_theme(ggheatmap = p,
123+
plotlist = 1,
124+
theme =list(
125+
126+
theme(axis.title.x=element_blank(),
127+
text = element_text(size=20),
128+
axis.text.x=element_blank(),
129+
axis.ticks.x=element_blank())
130+
) #close list
131+
) #close ggheatmap_theme
132+
g
133133
}
134134

135135
plot_pathway <- function(selected_pathway, nrank, species){

0 commit comments

Comments
 (0)