View source: R/show_sig_exposure.R
show_sig_exposure | R Documentation |
Currently support copy number signatures and mutational signatures.
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"
)
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'. |
a ggplot
object
Shixiang Wang
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.