[R] lineplot.CI {sciplot}: continuous line

Fotis Fotiadis fotisfotiadis at yahoo.gr
Wed Oct 27 20:02:09 CEST 2010


It's much more elegant if I set the 'type' parameter to "p" in lineplot.CI...

Thank you, that was really helpful!!!!

--- Στις Τετ., 27/10/10, ο/η Thomas Levine <thomas.levine at gmail.com> έγραψε:

> Από: Thomas Levine <thomas.levine at gmail.com>
> Θέμα: Re: [R] lineplot.CI {sciplot}: continuous line
> Προς: "Fotis Fotiadis" <fotisfotiadis at yahoo.gr>
> Κοιν.: r-help at r-project.org
> Ημερομηνία: Τετάρτη, 27 Οκτώβριος 2010, 20:38
> It could be more elegant, but I think
> this does what you want.
> 
> > ...
> > lineplot.CI(blck, perf, group = cnd, xlab="Block",
> ylab="% Optimal Responses", cex.leg=1.2, x.leg = 18,
> y.leg=0.4,  err.width=0.05, pch = c(15,15),
> col=c("grey", "black"), lty=c(1,1), main = "Experiments 2
> and 3", ylim=c(0.3,1), fixed=TRUE, ci.fun= function(x)
> c(mean(x)-1.96*se(x), mean(x)+1.96*se(x)),leg.lab=c("cond2",
> "cond3"))
> > y=by(perf,list(cnd,blck),mean)
> > lines(1:20,y[1,1:20],col='grey')
> > lines(1:29,y[2,1:29],col='black')
> 
> Tom
> 
> 2010/10/27 Fotis Fotiadis <fotisfotiadis at yahoo.gr>:
> > Sorry for that, I was trying to keep my question
> short.
> >
> > lineplot.CI(blck, perf, group = cnd, xlab="Block",
> ylab="% Optimal Responses", cex.leg=1.2, x.leg = 18,
> y.leg=0.4,  err.width=0.05, pch = c(15,15), col=c("grey",
> "black"), lty=c(1,1), main = "Experiments 2 and 3",
> ylim=c(0.3,1), fixed=TRUE, ci.fun= function(x)
> c(mean(x)-1.96*se(x), mean(x)+1.96*se(x)),leg.lab=c("cond2",
> "cond3"))
> >
> > Thanks,
> > Fotis
> >
> > --- Στις Τετ., 27/10/10, ο/η Thomas Levine
> <thomas.levine at gmail.com>
> έγραψε:
> >
> >> Από: Thomas Levine <thomas.levine at gmail.com>
> >> Θέμα: Re: [R] lineplot.CI {sciplot}:
> continuous line
> >> Προς: "Fotis Fotiadis" <fotisfotiadis at yahoo.gr>
> >> Κοιν.: r-help at r-project.org
> >> Ημερομηνία: Τετάρτη, 27
> Οκτώβριος 2010, 19:47
> >> Sending your code would help. All I
> >> can say now is that I have a hunch
> >> that you should consider a different type of
> plot.
> >>
> >> Tom
> >>
> >> 2010/10/27 Fotis Fotiadis <fotisfotiadis at yahoo.gr>:
> >> > Hallo to all
> >> >
> >> > I am trying to plot the learning curves of
> two groups
> >> of participants using the lineplot.CI() function.
> Since
> >> there are 30 levels on my x-axix, the resulting
> curves is
> >> kind of fragmented and not really continuous.
> >> > Is there a way to minimize the gap between
> the mean
> >> points and the connecting lines?
> >> >
> >> > Thank you in advance,
> >> > Fotis
> >> >
> >> >
> >> >
> >> >
> ______________________________________________
> >> > R-help at 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 at 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.
> >
> 





More information about the R-help mailing list