plotPhylo: plotPhylo()

View source: R/plotPhylo.R

plotPhyloR Documentation

plotPhylo()

Description

Plots a phylogenetic tree.

Usage

plotPhylo(
  scCNA,
  label = NULL,
  label_colors = NULL,
  consensus = FALSE,
  group = NULL
)

Arguments

scCNA

scCNA object.

label

A string with the element of colData. to annotate the tips of the tree.

label_colors

A named list with colors for the label annotation. Must match label length

consensus

A boolean indicating if the consensus phylogenetic tree should be plotted.

group

A string that if provided will plot the tip labels as pie charts with the proportions from the provided element from colData

Value

A ggplot object with a phylogenetic tree visualization.

Author(s)

Junke Wang

Examples

set.seed(1000)
copykit_obj <- copykit_example_filtered()[,sample(100)]
copykit_obj <- findClusters(copykit_obj)
copykit_obj <- runPhylo(copykit_obj)
plotPhylo(copykit_obj, label = "subclones")

navinlabcode/copykit documentation built on Oct. 16, 2024, 2:55 p.m.