scW.p.preservation: Plots dotplot showing the z-score values for preservation and...

View source: R/plotting.R

scW.p.preservationR Documentation

Plots dotplot showing the z-score values for preservation and other aspects of it

Description

This function will plot a dotplot, with the zscore values for global preservation, as well as density and connectivity for each module and each test sample that was compared. Can also plot the median rank.

Usage

scW.p.preservation(
  scWGCNA.comp.data,
  to.plot = c("preservation", "median.rank"),
  test.samples = NULL
)

Arguments

scWGCNA.comp.data

scWGCNA comparative data as calculated by scWGNA.compare().

to.plot

character or character vector. Which aspects of the preservation should be plotted? Options: "preservation", "median.rank", "density", "connectivity".

test.samples

character or character vector. Which test samples to plot. Default is all

Value

Either a single ggplot dotoplot showing the desired aspect of preservation. If several were requested, a gridExtra of the different ggplot dotplots.

Examples


# S pre-calculated list scWGCNA comparative data, calculated with scWGCNA.compare
class(MmvGg.comparative)

# Plot the overall preservation and median rank.
scW.p.preservation(scWGCNA.comp.data = MmvGg.comparative, to.plot=c("preservation", "median.rank"))

CFeregrino/scWGCNA documentation built on Nov. 21, 2022, 2:31 a.m.