Mercurial > repos > vipints > rdiff
annotate rDiff/src/locfit/m/plotbyfactor.m @ 2:233c30f91d66
updated python based GFF parsing module which will handle GTF/GFF/GFF3 file types
| author | vipints <vipin@cbio.mskcc.org> |
|---|---|
| date | Tue, 08 Oct 2013 07:15:44 -0400 |
| parents | 0f80a5141704 |
| children |
| rev | line source |
|---|---|
| 0 | 1 function plotbyfactor(x,y,f) |
| 2 % | |
| 3 % very simplistic version of plotbyfactor. | |
| 4 % no symbols, will crash if more than 8 levels. | |
| 5 % | |
| 6 | |
| 7 z = unique(f); | |
| 8 cols = ['b','r','g','m','c','y','k','w']; | |
| 9 | |
| 10 for (i = 1:length(z)) | |
| 11 u = find(f==z(i)); | |
| 12 plot(x(u),y(u),'.','color',cols(i)); | |
| 13 hold on; | |
| 14 end; | |
| 15 hold off; | |
| 16 | |
| 17 return; |
