MonashProteomics / Phospho-Analyst

GNU Lesser General Public License v3.0
0 stars 0 forks source link

pca_plot on the NormalizedPage has error #8

Closed Hailey-Z closed 2 years ago

Hailey-Z commented 2 years ago

The pca_plot on the NormalizedPage worked well in multiple groups data but raises errors while implementing the two-groups data. The error message shows below image

anupshah14 commented 2 years ago

The default n for plot_pca is 500. If number of rows are below 500 then following code helps

if (num_total()<=500){ if(length(levels(as.factor(colData(dep())$replicate))) <= 6){ pca_plot<-DEP::plot_pca(dep(), n=num_total(), point_size = 4) pca_plot<-pca_plot + labs(title = "PCA Plot") return(pca_plot) }