Description Usage Arguments Value See Also Examples
View source: R/ggPlotMutationalSignatures.R
Plotting mutational signatures.
1 | ggPlotMutationalSignatures(mutational.processes.file, d=NULL, color_pallete="Dark2", xlabel="Mutational contexts", ylabel="Percentage of mutations", y.upper.value=NA)
|
mutational.processes.file |
Mutational process file obtained after running |
d |
A data frame refers to |
color_pallete |
The name of color pallete supported by ColorBrewer. |
xlabel |
X-label. |
ylabel |
Y-label. |
y.upper.value |
Truncate y-value to this value if provided (range: 0-100). |
A ggplot object.
SomaticSignatures::plotSignatures
1 2 3 4 5 6 7 8 9 | infile='/Users/lixiangchun/Public/WorkSpace/Project/TJMUCH-Prof.ChenKexin-CRC/lixc/revision/decipherMutationalSignatures/output/Rank_eq_3.processes.txt'
ggPlotMutationalSignatures(infile)
# Or
d=read.table(infile,header=TRUE,stringsAsFactors=FALSE)
x=d[,c(1,2,4,5,3)]
colnames(x)[3:5] = c('Signature1','Signature2', 'Signature3')
ggPlotMutationalSignatures(d=x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.