18
|
1 # boxplotCounts
|
|
2 # boxplots representing counts distribution per sample
|
|
3
|
|
4 # input : counts, target, projectName, type of data (raw or norm)
|
|
5 # output : boxplot (png)
|
|
6
|
|
7 # created Feb 7th, 2012
|
|
8 # modified April 30th, 2012
|
|
9
|
|
10 boxplotCounts <- function( counts, group, type = c("raw", "norm"), OUT_boxplotCountsName, out = TRUE ){
|
|
11
|
|
12 if (out) png( file=OUT_boxplotCountsName )
|
|
13
|
|
14 boxplot( log2(counts+1), col=as.integer(group)+1, main = paste(type[1], " counts distribution", sep="" ) )
|
|
15 legend( "topright", as.character(unique(group)), lty=1, col=as.integer(unique(group))+1 )
|
|
16
|
|
17 if (out) dev.off()
|
|
18 }
|