[R] Errorbars

2011-06-17 Thread anna Harris
Hi,

Does anyone know how i get rid of the marker point in my error bars? The
bars default function (it seems) is to have a dot in the middle of the bar,
however i don't want it there.

I am using Hmis to draw my errorbars and code is

a-as.vector(tapply(Sporangia,list(Host,Isolate),mean))
b-as.vector(tapply(Sporangia,list(Host,Isolate),sd))
c-sqrt(b/36)

errbar(c(1.5,2.5,3.5,5.5,6.5,7.5),(tapply(Sporangia,list(Host,Isolate),mean)),a+c,a-c,add=T)

Cheers

Anna

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Error bars

2011-06-15 Thread Anna Harris
Hi, 

Can anyone help with plotting vertical error bars on a bar graph. 

I have tried following examples online and in the big R book and writing my own 
function but I have been unsuccessful and don’t really have an understanding 
of what it is I am doing. I have calculated my standard errors so basically 
just need to draw the bars on the graph but just don’t have a clue!!!

I don’t even know what information people will need to help me..

The code for my graph is:

barplot(tapply(Sporangia,list(Host,Isolate),mean),xlab=Isolate,ylab=Mean 
Sporangia per Needle,col=c(grey39,grey64,grey89),beside=T)
col=c(grey39,grey64,grey89)
legend(topright,inset=.05,title=Host,c(European Larch,Hybrid 
Larch,Japanese Larch),fill=col,horiz=FALSE)

Any help would be greatly appreciated, 

Anna


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.