[R] Simple lattice graphics question

About this list Date view Thread view Subject view Author view Attachment view

From: Sean Davis (sdavis2@mail.nih.gov)
Date: Wed 05 May 2004 - 08:05:13 EST


Message-id: <BCBD8BD9.7A41%sdavis2@mail.nih.gov>

Dear all,

I am using panel graphics to do a stripplot of a variable versus a shingle
and putting a loess curve on the stripplot. I want the data jittered, but I
can't seem to get the panel function to work. This jitter's the data, but
of course doesn't give me the loess:

> stripplot((g[,3]) ~ c,jitter=T,pch=".",scales=list(y=list(log=T)))

But this doesn't give me any jittering. What am I missing?

> stripplot(jitter(g[,3]) ~ c,scales=list(y=list(log=T)),panel=function(x,y)
{panel.stripplot(x,y,pch='.'); panel.loess(x,y,span=1)},jitter=T)

Thanks for any help.

Sean

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:07 EST