[R] plot graph with error bars trouble

Jim Lemon jim at bitwrit.com.au
Tue Oct 2 12:17:29 CEST 2007


Marcelo Laia wrote:
 > ...
> ... but it plot the same point for one
> Mutant before the some point of other Mutant in the same Time.
> 
> I uploaded a .ps file to divshare for clarify what I want to explain.
> http://www.divshare.com/download/2182890-49c
> 
> and I uploaded a true dataset:
> http://www.divshare.com/download/2182913-5a3
> 
> This is the result! Could you help me a little bit more?
> 
Hi Marcelo,
If I read your message right, you don't want the points staggered. Try this:

ml.df<-read.table("../Marcelo_Laia.txt",header=TRUE)
brkdn.plot("OD","Mutant","Time",ml.df,stagger=0,pch=1:2,col=2:3)
legend(20,2,levels(ml.df$Mutant),pch=1:2,col=2:3,lty=1)

Jim



More information about the R-help mailing list