GlowwormOutputStacked: Generate a stacked bar plot showing the expression pattern...

View source: R/GlowwormOutputStacked.R

GlowwormOutputStackedR Documentation

Generate a stacked bar plot showing the expression pattern for each gene across all subpopulations.

Description

This function generates a stacked bar plot showing the expression pattern for each gene across each subpopulations. Genes are ranked based on both specificity and abundance either across the whole population (if using GlowwormScale as input) or across specific subpopulations (if using GlowwormSubpopulation as input). Each broad population in the metadata is given one color, and subpopulations are indicated by the various shades of that color.

Usage

GlowwormOutputStacked(
  GlowwormOutput,
  ShowTop = "All",
  Colors = "Default",
  Legend = T,
  RotateXText = 0,
  SizeXText = 11
)

Arguments

GlowwormOutput

Output from GlowwormScale or GlowwormSubpopulation

ShowTop

A numeric value indicating how many of the top ranked genes to show. Default is all.

Colors

A vector of colors to use for the broad populations. 14 colors are set as default. If more than 14 broad populations are detected, the user will need to input a vector of colors.

Legend

Show Legend. Default is true.

RotateXText

Rotate gene names on x-axis. Default is 0, but 45 and 90 are well supported.

SizeXText

Size of gene names. Default is 11.


Hannahglover/Glowworm documentation built on Jan. 16, 2024, 11:47 p.m.