Open liuninghua521 opened 3 years ago
geom_ord_ellipse
has been used in ggordpoint
. You can use ellipse_linewd
to adjust the width of the ellipse line, ellipse_lty
to adjust the type of ellipse line using the development version. You can use remotes::install_github("YuLab-SMU/MicrobiotaProcess")
to re-install it.
> library(MicrobiotaProcess)
> library(phyloseq)
> data(GlobalPatterns)
> subGlobal <- subset_samples(GlobalPatterns, SampleType %in% c("Feces", "Mock", "Ocean", "Skin"))
> pcares <- get_pca(subGlobal, method="hellinger")
> pcaplot <- ggordpoint(pcares, factorNames=c("SampleType", "SampleType"), ellipse=TRUE, ellipse_linewd=0.6, ellipse_lty=2, poinsize=2.8)
> pcaplot
非常感谢!!
老师好,我想知道如何更改置信椭圆的线条粗细。 我根据教程进行PCOA分析,可视化pcoares对象,但ggordpoint()貌似没有这个参数;我想使用yyplot中的的geom_ord_ellipse函数,但是我不知道如何将geom_ord_ellipse图层添加到pcoaplot上。麻烦老师解答。谢谢老师!