Learn R Programming

sigminer (version 0.1.11)

draw_sig_activity: Plot signature activity

Description

Currently support copy number signatures and mutational signatures.

Usage

draw_sig_activity(nmfObj, mode = c("copynumber", "mutation"),
  font_scale = 1, hide_samps = TRUE)

Arguments

nmfObj

a NMF result object which is an element return from sig_extract or run results of NMF package.

mode

variation type to decompose, currently support "copynumber" or "mutation".

font_scale

a number used to set font scale.

hide_samps

if TRUE, not show sample names.

Value

a ggplot object

See Also

Other signature plot: draw_sig_corrplot, draw_sig_profile, draw_subtypes_comparison

Examples

Run this code
# NOT RUN {
# Load copy number signature
load(system.file("extdata", "toy_copynumber_signature.RData",
  package = "sigminer", mustWork = TRUE
))
draw_sig_activity(res$nmfObj)
# }

Run the code above in your browser using DataLab