data("sca_sigs", package = "SomaticSignatures")
plotSamples(sigs_nmf)
plotSignatures(sigs_nmf, normalize = TRUE)
## customize the plots ##
p = plotSamples(sigs_nmf)
library(ggplot2)
## (re)move the legend
p = p + theme(legend.position = "none")
## change the axis labels
p = p + xlab("Studies")
## add a title
p = p + ggtitle("Somatic Signatures in TGCA WES Data")
## change the color scale
p = p + scale_fill_brewer(palette = "Blues")
## decrease the size of x-axis labels
p = p + theme(axis.text.x = element_text(size = 9))
p
Run the code above in your browser using DataLab