Plot Multi-Nucleotide Variants (MNVs) counts for a set of given patients.

patientsMNVPlot(
  multi_nucleotides_counts,
  samples = rownames(multi_nucleotides_counts),
  freq = FALSE,
  xlabels = FALSE
)

Arguments

multi_nucleotides_counts

Multi-Nucleotide counts matrix.

samples

Name of the samples. This should match a rownames in multi_nucleotides_counts

freq

Boolean value; shall I display rates instead of counts?

xlabels

Boolean value; shall I display x labels?

Value

A ggplot2 object.

Examples

data(plot_data_examples)
counts <- plot_data_examples[['patients.MNV.plot']][['counts']]
patientsMNVPlot(multi_nucleotides_counts=counts,samples=rownames(counts)[seq_len(2)])