Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
wolski committed Aug 26, 2024
1 parent 04edd7a commit 73e40d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tidyMS_plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ plot_pca <- function(data , config, PC = c(1,2), add_txt = FALSE, plotly = FALSE
ff <- t(ff)
pca_result <- prcomp(ff)
xx <- as_tibble(pca_result$x, rownames = config$table$sampleName)
if (max(PC) > ncol(xx)) {
if (max(PC) > (ncol(xx)-1)) {
warning("nr of PCs: ", ncol(xx), "\n")
return(NULL)
}
Expand Down

0 comments on commit 73e40d5

Please sign in to comment.