This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Percentages of samples mutated in individual tumour

Dear all,

do anyone know any R package or program can produce this figure. I could not find such a thing in Maftool or GenVisR.

http://www.nature.com/nature/journal/v502/n7471/fig_tab/nature12634_F2.html

Many thanks in advance, Rahel

maftool genvisr snp frequency snp percentage

Looks like a customized heatmap, but perhaps there is a more specific tool.

1 answer

With the corrplot package in R you should get pretty close to that, e.g:

install.packages('corrplot')
library(corrplot)
M<- matrix(data= rnorm(n= 100), nrow= 20)
rownames(M)<- letters[1:nrow(M)]
colnames(M)<- letters[1:ncol(M)]
corrplot(M, is.corr= FALSE, method= 'color', addCoef.col= 'black')

For a one-off figure it might be easier to do it with Excel using the conditional formatting option (Format -> Conditional formatting)

Log in to answer this question.