Skip to content

Commit 844ee69

Browse files
authored
fixs (#295)
1 parent 8f0ce9c commit 844ee69

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Omics/iVolcanoPlot.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ p_dot <- idotplot(ego, showCategory = 8) +
292292
scale_y_discrete(labels = function(x) strtrim(x, 30))
293293
p_vol <- ivolcano(df_airway, logFC_col = "log2FoldChange", pval_col = "padj",
294294
gene_col = "symbol", title = "Volcano Plot", interactive = TRUE)
295-
pathway_volcano(p_dot, p_vol, widths = c(1, 1))
295+
p <- pathway_volcano(p_dot, p_vol, widths = c(1, 1))
296+
297+
p
296298
```
297299

298300
Figure 8 demonstrates the linkage effect between the pathway dot plot and the volcano plot. Clicking a pathway on the left highlights the genes within that pathway in the volcano plot on the right, while other genes turn gray.

Omics/iVolcanoPlot.zh.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ p_dot <- idotplot(ego, showCategory = 8) +
292292
scale_y_discrete(labels = function(x) strtrim(x, 30))
293293
p_vol <- ivolcano(df_airway, logFC_col = "log2FoldChange", pval_col = "padj",
294294
gene_col = "symbol", title = "Volcano Plot", interactive = TRUE)
295-
pathway_volcano(p_dot, p_vol, widths = c(1, 1))
295+
p <- pathway_volcano(p_dot, p_vol, widths = c(1, 1))
296+
297+
p
296298
```
297299

298300
Figure 8 展示了通路点图与火山图的联动效果。点击左侧通路即可在右侧火山图中高亮该通路内的基因,其余基因自动变为灰色。

0 commit comments

Comments
 (0)