[R] plot a vertical column of colored rectangles

2011-07-15 Thread Nacho Caballero
Hi, I've been really struggling with this. If I have a vector like dat <- c(0,0,0,0,1,1,1,0,0,0,1,1,0,0,0,1,0,0,0) I want to plot each element as a colored rectangle (red=1, blue=1) in the right order, so they all stack up forming a vertical column on the graph. Sort of like a building, with each

[R] biclustering using grouped columns

2010-01-21 Thread Nacho Caballero
Hi, I'm trying to perform biclustering to a matrix with genes as rows and columns representing the frequency of each codon for each of its aminoacids, like: Tyr(TAT) Tyr(TAC) Iso(ATT) Iso(ATC) Iso(ATA) Phe(TTT) Phe(TTC) gene1 0.2 0.8 0.3 0.3 0