Skip to content
Back to formatted view

Raw Message

Message-ID: <4EC3DCB8.4060408@hinxton.sanger.ac.uk>
Date: 2011-11-16T15:54:32Z
From: Nathalie Conte
Subject: simple script help

HI,


I have subsetted a list of exons and put them in a vector exon_list
 > exon_list=levels(test5$V1)

 I want to loop using that vector to create a big pdf which will contain 
all my barplots  and doing this I got only the last  element in my 
exon_list plotted rather than all of them, I guess this is a silly 
newbie mistake, could any of you help?
another point, how to put a numerical scale on X axis in barplot?

 > for (i in exon_list){
+ pdf(file="test.pdf", width=30, height=30, pointsize=36)
+ barplot(uniq5[ which(uniq5$V1==i), ]$V5, main=i)
+
+ dev.off()
+
+
+ }

thanks a lot
Nathalie


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE.