plotDists: Plot distributions

Description Usage Arguments Value

View source: R/plot-genes.R

Description

This will plot the distribution of a continuous label across discrete classes. For instance, it can be used to plot the distribution of pseudotime in each developmental stage.

Usage

1
2
3
4
5
6
7
8
9
plotDists(
  object,
  label,
  category.label,
  label.type = "search",
  category.label.type = "search",
  legend = T,
  plot.title = ""
)

Arguments

object

An URD object

label

(Character) Data to use for distributions (e.g. "pseudotime", a metadata name, or a gene name). Must be continuous.

category.label

(Character) Data to use for dividing into separate curves (e.g. developmental stage or a clustering). Must be discrete.

label.type

(Character) Type of data to search for the label. Default is "search" which checks several data types in order. For more information: data.for.plot

category.label.type

(Character) Type of data to search for category.label. Default is "search" which checks several data types in order. For more information: data.for.plot

legend

(Logical) Show a legend?

plot.title

(Character) Title of the plot

Value

A ggplot2 object. If used in a loop, plot(plotDists(...)) must be used.


farrellja/URD documentation built on June 17, 2020, 4:48 a.m.