Find correlation between principal components (PCs) and covariates

plotPCACovariates(object, ...)

# S4 method for bcbioRNASeq
plotPCACovariates(object, metrics = TRUE,
  normalized = c("tpm", "sf", "fpkm", "vst", "rlog", "tmm", "rle"), ...)

Arguments

object

Object.

metrics

boolean. Include sample summary metrics as covariates. Defaults to include all metrics columns (TRUE), but desired columns can be specified here as a character vector.

normalized

character(1) or logical(1). Normalization method to apply:

  • FALSE: Raw counts. When using a tximport-compatible caller, these are length scaled by default (see countsFromAbundance argument). When using a featureCounts-compatible caller, these are integer.

tximport caller-specific normalizations:

  • "tpm": Transcripts per million.

Additional gene-level-specific normalizations:

...

Additional arguments, passed to DEGreport::degCovariates().

Value

ggplot.

Note

Requires the DEGreport package to be installed.

Updated 2019-10-30.

See also

Examples

data(bcb) if (requireNamespace("DEGreport", quietly = TRUE)) { plotPCACovariates(bcb) }
#> #> running pca and calculating correlations for: #> un-scaled data in pca; #> pve >= 5%; #> kendall cor