Plot Copy Number (CN) counts for a set of given patients.

patientsCNPlot(
  cn_data_counts,
  samples = rownames(cn_data_counts),
  freq = FALSE,
  xlabels = FALSE
)

Arguments

cn_data_counts

Copy Number counts matrix.

samples

Name of the samples. This should match a rownames in cn_data_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.CN.plot']][['counts']]
patientsCNPlot(cn_data_counts=counts,samples=rownames(counts)[seq_len(2)])