plot_flattened_tree: Plots a flattened 2 dimensional version of the Elastic Tree...

Description Usage Arguments

View source: R/PlotTree.R

Description

Given an Elastic Tree it plots a 2 dimensional version of the Elastic Tree. If given annotation for each cell, each node of the elastic tree will be a pie chart of the different cell identities that were assigned to the node.

Usage

1
2
3
plot_flattened_tree(ElasticTree, cell_annot = NULL, layout = NULL,
  legend_position = "topright", node_size = c("topology", "cells"),
  node_radius = 12, cols = NULL)

Arguments

ElasticTree

One of the elements in the Dataset$GeneNames object.

cell_annot

Cell annotation to show in the nodes of the elastic tree. Default is the MERLoT branch identity.

layout

Layout for the visualization of the elastic tree. Default is to use the Kamada-Kawai algorithm.

legend_position

The position of the legend.

node_size

If annotation was provided, set if the size of each pie chart will be uniform ("topology") or depend on the number of cells assigned to the node ("cells")

node_radius

Sets the default node radius if node_size = "topology"

cols

A vector of colors to use for the annotation.


soedinglab/merlot documentation built on June 28, 2020, 9:36 a.m.