Plot showing tree and CNA data site-by-site.

plot_tree_and_cn_data(
  x,
  cn_data,
  title = "",
  dropped_samples = NULL,
  plot_tree_function = NULL,
  labeller_function = function(x) x,
  ...
)

Arguments

x

Object returned from 'add_lowpass_sampled' or a object of type 'phylo'.

cn_data

CNA data as a named list of genomic ranges objects with a 'cn' metadata column.

title

(optional) title for the plot.

dropped_samples

(optional) vector of dropped samples.

plot_tree_function

(optional) function to plot the tree object.

labeller_function

(optional) function returning a modified version of sample labels.

...

(optional) arguments passed to the 'plot_tree_function' function.

Value

A grob.