crj32 / M3C

Monte Carlo Reference-based Consensus Clustering
https://bioconductor.org/packages/release/bioc/html/M3C.html
36 stars 15 forks source link

How can I combine fviz_pca_ind() visualization power with M3C ggplot PCA object? #9

Open Rohit-Satyam opened 3 years ago

Rohit-Satyam commented 3 years ago

Hi!!

I was developing a package wherein I needed to write a function for dimensionality reduction of a matrix and visualize the plots and M3C turns out to be the perfect recipe for it. Thanks for pooling together PCA, TSNE, and UMAP in one package with uniform argument passing ability.

But I am facing a challenge. To make graphs more appealing, previously withprcomp output I was using fviz_pca_ind() function to make plots like shown below: image

I was able to change shapes and encircle the data points according to group type (There are 4 groups in the plot below) using the fviz_pca_ind() function. Is there a way to achieve the same in the M3Cpackage too because all I can see is a dotsizeparameter:

image