Description Usage Arguments Details See Also Examples
View source: R/plot.mutational.exposures.R
Visualizing mutational exposures.
1 2 3 4 5 6 7 8 9 10 | plot.mutational.exposures(d = NULL,
mutational.exposure.file = NULL,
clustid = NULL,
cols = c('#6C4F4C','#8EA37A','#843818','#AEDD99','#F89867','#FF0000','#A79D90'),
sorting = FALSE,
use.colname.as.signature.name = FALSE,
legend.ncol = 4,
legend.ypos = 0,
sorting.by.sample.name = FALSE,
add.sample.name = FALSE)
|
d |
A data frame of mutational exposures. Check example for more info about the file format. |
mutational.exposure.file |
Mutational exposure file outputted from mutational signature deciphering framework |
clustid |
A vector of clustid of each sample. |
cols |
A vector of colors used. |
sorting |
If TRUE, sort exposures sequentially. |
legend.ypos |
The y-position of the legend. |
See the following example for more info about inputs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(lxctk)
data("icgc.hcc", package="lxctk") ## ICGC liver cancer data and SMGs selected for NMF clustering.
d <- icgc.hcc
mutationalSignatureNames <- paste('mutationalSignature',1:7,sep="")
clustid <- d$nmf_clustid
# clustid <- rep(0, nrow(d))
plot.mutational.exposures(d[,mutationalSignatureNames])
# Or
plot.mutational.exposures(d[,mutationalSignatureNames],clustid)
## Or
plot.mutational.exposures(NULL,system.file('data/Rank_eq_9.exposures.txt',package='lxctk'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.