enrichplot icon indicating copy to clipboard operation
enrichplot copied to clipboard

autofacet function for GSEA can not add facet_grid(~.sign)

Open swcyo opened this issue 1 year ago • 0 comments

Thanks to Uncle Y's team for solving my previous issue that ~~Can not use autofacet function for GSEA result~~.

Now, a new problem is that GSEA supports activation and suppression two facet functions :+facet_grid(~.sign), but after using autofacet() function, I found can not use +facet_grid(~.sign) function. The two functions can't be overlapped.

The existing solution for me is to use patchwork to merge the list plot.

just like

p1<-dotplot(y$`Gene Ontology;BP`)+facet_grid(~.sign)
p2<-dotplot(y$KEGG)+facet_grid(~.sign)
library(patchwork)
p1/p2

Can we use autofacet() and facet_grid(~.sign) function to add the dual facets (horizontal and vertical facets)

依旧发现了问题,虽然解决了autofacet(),但是对于GSEA而言,有激活和抑制两种结果。 测试发现使用了autofacet(),就不能使用facet_grid(.sign);使用了facet_grid(.sign),就不能autofacet() 建议继续优化,也就是横分面和纵分面两个facet,谢谢

swcyo avatar Nov 20 '22 09:11 swcyo