Re: [R] hello! i need help for a specific graphic issue

2008-03-12 Thread bartjoosen
quick (and dirty) solution: y.up<- means+stand.error y.dwn<- means-stand.error plot(means,ylim=c(3.5,10)) for (i in 1:length(means)) arrows(i,means[i],i,y.up[i],length=0.1) for (i in 1:length(means)) arrows(i,means[i],i,y.dwn[i],length=0.1) Giacomo Prodi wrote: > > hello, ladyes and gentlem

Re: [R] hello! i need help for a specific graphic issue

2008-03-12 Thread John Kane
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"

Re: [R] hello! i need help for a specific graphic issue

2008-03-12 Thread hadley wickham
On Wed, Mar 12, 2008 at 5:37 AM, 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) f

Re: [R] hello! i need help for a specific graphic issue

2008-03-12 Thread René Capell
get instant information with 'locator()', which returns coordinates of mouse clicked locations in plots. cheers, /rené > -Ursprüngliche Nachricht- > Von: "Giacomo Prodi" <[EMAIL PROTECTED]> > Gesendet: 12.03.08 11:56:45 > An: r-help@r-project.org >

[R] hello! i need help for a specific graphic issue

2008-03-12 Thread Giacomo Prodi
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()