Skip to content

Commit

Permalink
Merge pull request #38 from dkcoxie/patch-1
Browse files Browse the repository at this point in the history
Update pcaOtherPlotting.R
  • Loading branch information
ningbioinfo authored Aug 6, 2024
2 parents 0f313b5 + 3ecb0a0 commit 8dd43b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/pcaOtherPlotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ expand.grid.rmdup <- function(x, y, include.equals = FALSE) {
#' plotPairPCA(dkd_spe_subset)
plotPairPCA <- function(spe_object, n_dimension = 3,
precomputed = NULL,
assay = 2, title = NA, title.size = 14, rmduplabs = FALSE, flipcoord = FALSE, ...) {
assay = 2, title = NA, title.size = 14, rmduplabs = FALSE, flipcoord = FALSE,
legend.pos = "top", ...) {
stopifnot(is.numeric(n_dimension))

# compute PCA
Expand Down Expand Up @@ -105,7 +106,7 @@ plotPairPCA <- function(spe_object, n_dimension = 3,
PCApairplot <- ggpubr::ggarrange(
plotlist = plotting_list,
ncol = n - 1, nrow = n - 1, align = "hv",
common.legend = TRUE, legend = "top"
common.legend = TRUE, legend = legend.pos
)

if (!is.na(title)) {
Expand Down

0 comments on commit 8dd43b2

Please sign in to comment.