Mercurial > repos > yufei-luo > s_mart
comparison SMART/DiffExpAnal/DESeqTools/boxplotCounts.R @ 18:94ab73e8a190
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 29 Apr 2013 03:20:15 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
17:b0e8584489e6 | 18:94ab73e8a190 |
---|---|
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 } |