View source: R/show_sig_profile_loop.R
show_sig_profile_loop | R Documentation |
Show Signature Profile with Loop Way
show_sig_profile_loop(
Signature,
sig_names = NULL,
ncol = 1,
nrow = NULL,
x_lab = "Components",
...
)
Signature |
a |
sig_names |
subset signatures or set name of signatures, can be a character vector.
Default is |
ncol |
(optional) Number of columns in the plot grid. |
nrow |
(optional) Number of rows in the plot grid. |
x_lab |
x axis lab. |
... |
other parameters but |
a ggplot
result from cowplot::plot_grid()
.
show_sig_profile
load(system.file("extdata", "toy_mutational_signature.RData",
package = "sigminer", mustWork = TRUE
))
# Show signature profile
p1 <- show_sig_profile_loop(sig2, mode = "SBS")
p1
p2 <- show_sig_profile_loop(sig2, mode = "SBS", style = "cosmic", sig_names = c("A", "B", "C"))
p2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.