plot_logmap: Plot logmap Plot logmap coordinates using the first two...

View source: R/plot_logmap.R

plot_logmapR Documentation

Plot logmap Plot logmap coordinates using the first two principal components.

Description

Plot logmap Plot logmap coordinates using the first two principal components.

Usage

plot_logmap(
  vectors,
  base_name,
  other_cons_name = NULL,
  gene_names = NULL,
  col = NULL,
  col_name = NULL,
  show_legend = TRUE,
  cons_exists = TRUE
)

Arguments

vectors

A matrix of logmap vectors for each tree.

base_name

The name of the base tree in the log map.

other_cons_name

An optional other consensus tree name.

gene_names

An optional list of gene names. If no names are given, numbers will be used to identify trees.

col

An optional list of gene attributes to color the points of the scatterplot by.

col_name

An optional name for the color attribute

show_legend

If true, the color legend is shown, if false it is hidden.

cons_exists

True if plot includes a consensus tree, false if not.

Value

A ggplot object.


svteichman/TreeVizPackage documentation built on June 22, 2022, 11:21 p.m.