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

Fotis Fotiadis fotisfotiadis at yahoo.gr
Wed Oct 27 19:03:23 CEST 2010


Sorry for that, I was only trying to be short.


data<-read.table("2_3_blocksof10.txt", header=T)
sbj<-as.factor(data$Subj)
cnd<-as.factor(data$Cond)
blck<-as.factor(data$Block)
perf<-data$Perf
dat<-data.frame(sbj, cnd, blck, perf)

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"))

I am attaching the data file too, and a pdf showing the graph.

Thank you a lot,
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.
> >
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fig.pdf
Type: application/pdf
Size: 15780 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101027/c60fa553/attachment.pdf>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 2_3_blocksof10.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101027/c60fa553/attachment.txt>


More information about the R-help mailing list