Plot observed Copy Number (CN) counts for different groups of patients.

groupsCNPlot(counts, groups, normalize = TRUE, xlabels = FALSE)

Arguments

counts

Matrix with Copy Number (CN) counts data.

groups

List where names are groups labels and elements are patients labels corresponding to rownames in counts.

normalize

Boolean value; shall I normalize observed counts?

xlabels

Boolean value; shall I display x labels?

Value

A ggplot2 object.

Examples

data(plot_data_examples)
counts <- plot_data_examples[['groups.CN.plot']][['counts']]
groups <- plot_data_examples[['groups.CN.plot']][['groups']]
groupsCNPlot(counts=counts,groups=groups)
#> Warning: `aes_string()` was deprecated in ggplot2 3.0.0.
#>  Please use tidy evaluation idioms with `aes()`.
#>  See also `vignette("ggplot2-in-packages")` for more information.
#>  The deprecated feature was likely used in the RESOLVE package.
#>   Please report the issue at <https://github.com/danro9685/RESOLVE/issues>.