Learn R Programming

sigminer (version 0.1.11)

draw_sig_profile: Plot signature profile

Description

Currently support copy number signatures and mutation signatures.

Usage

draw_sig_profile(nmfObj, mode = c("copynumber", "mutation"),
  y_scale = c("relative", "absolute"), font_scale = 1)

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".

y_scale

one of 'relative' or 'absolute', if choose 'relative', signature columns will be scaled to sum as 1.

font_scale

a number used to set font scale.

Value

a ggplot object

See Also

Other signature plot: draw_sig_activity, draw_sig_corrplot, 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_profile(res$nmfObj)
# }

Run the code above in your browser using DataLab