Skip to content

Commit ee9c177

Browse files
authored
Update server.R
1 parent 8e972f6 commit ee9c177

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

fea/tab_SCORES/server.R

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

113-
ggheatmap::ggheatmap(data = mat,
113+
p <- ggheatmap::ggheatmap(data = mat,
114114
color = colorRampPalette(c( "#0000ff","#fad541","#b60404"))(100),
115115
cluster_rows = clust_rows,
116116
cluster_cols = clust_cols,
@@ -120,6 +120,22 @@ plot_gset_heatmap <- function(scores, ids, cluster, scale, selected_cols, groups
120120
annotation_cols = col_metaData,
121121
annotation_color = col
122122
)
123+
124+
g <- ggheatmap_theme(ggheatmap = p,
125+
plotlist = c(1,2),
126+
theme =list(
127+
128+
theme(axis.title.x=element_blank(),
129+
text = element_text(size=20),
130+
axis.text.x=element_blank(),
131+
axis.ticks.x=element_blank()),
132+
133+
theme(
134+
legend.title = element_text(size = 18),
135+
legend.text = element_text(size= 18))
136+
)
137+
)
138+
g
123139

124140
}
125141

0 commit comments

Comments
 (0)