show_sig_exposure {sigminer} | R Documentation |
Plot Signature Exposure
Description
Currently support copy number signatures and mutational signatures.
Usage
show_sig_exposure(
Signature,
sig_names = NULL,
groups = NULL,
grp_order = NULL,
grp_size = NULL,
samps = NULL,
cutoff = NULL,
style = c("default", "cosmic"),
palette = use_color_style(style),
base_size = 12,
font_scale = 1,
rm_space = FALSE,
rm_grid_line = TRUE,
rm_panel_border = FALSE,
hide_samps = TRUE,
legend_position = "top"
)
Arguments
Signature |
a |
sig_names |
set name of signatures, can be a character vector. |
groups |
sample groups, default is |
grp_order |
order of groups, default is |
grp_size |
font size of groups. |
samps |
sample vector to filter samples or sort samples, default is |
cutoff |
a cutoff value to remove hyper-mutated samples. |
style |
plot style, one of 'default' and 'cosmic', works when
parameter |
palette |
palette used to plot, default use a built-in palette
according to parameter |
base_size |
overall font size. |
font_scale |
a number used to set font scale. |
rm_space |
default is |
rm_grid_line |
default is |
rm_panel_border |
default is |
hide_samps |
if |
legend_position |
position of legend, default is 'top'. |
Value
a ggplot
object
Author(s)
Shixiang Wang
Examples
# Load mutational signature
load(system.file("extdata", "toy_mutational_signature.RData",
package = "sigminer", mustWork = TRUE
))
# Show signature exposure
p1 <- show_sig_exposure(sig2)
p1
# Load copy number signature
load(system.file("extdata", "toy_copynumber_signature_by_W.RData",
package = "sigminer", mustWork = TRUE
))
# Show signature exposure
p2 <- show_sig_exposure(sig)
p2