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

Thomas Levine thomas.levine at gmail.com
Wed Oct 27 19:38:15 CEST 2010

```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

> 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
>> Κοιν.: 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
>>
>> > 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
>> > and provide commented, minimal, self-contained,
>> reproducible code.
>> >
>>
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help