I don't think that you're actually creating a scatterplot if the x-axis is a factor. You're getting a boxplot.
If you want a scatterplot then something like this might work. ====================================================== means<-c(4,6,8) stand.error<-c(0.1,0.3,0.5) aa <- factor(c("A","B","C","A", "C", "C")) dd <- 1:length(levels(aa)) plot(dd, means, xaxt="n") arrows(dd, means + stand.error, dd, means-stand.error, code=3, angle=90) axis(1, at=dd, labels=levels(aa)) ======================================================= --- Giacomo Prodi <[EMAIL PROTECTED]> wrote: > hello, ladyes and gentlemans. > > check this: > > means<-c(4,6,8) > stand.error<-c(0.1,0.3,0.5) > > now i've strongly tryed to scatterplot the > means(y-axis),by showing their sd with the > arrow(..,code=3,angle=90) function. > The problem is that my x-axis has categorical values > (say, factor(x)), and the arrows() can't recognize > them as right coordinates. > ????? > thank you all in advance > B.F. insubria university (varese) > > > > La web mail più usata al mondo. > http://it.docs.yahoo.com/mail/overview/index.html > > ______________________________________________ > 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-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.