[19347] in s-news-athena
[S] xyplot
daemon@ATHENA.MIT.EDU (Winson Taam)
Wed Sep 29 14:12:26 1999
Date: Wed, 29 Sep 1999 14:06:04 -0400 (EDT)
From: Winson Taam <taam@Oakland.edu>
To: s-news@wubios.wustl.edu
Message-Id: <Pine.OSF.3.95.990929135544.14272A-100000@saturn2.acs.oakland.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
I have used nlme fitted on a set of data and would like to
use xyplot to plot the original data and the fitted result.
But I cannot find enough documentation to learn xyplot.
Can some one give me some idea where to look for find that?
I have tried on-line help and MASS3.
mydata.nlme <- nlme( ..... )
I was able to fit a model and found the fitted values
myhat <- fitted(mydata.nlme)
xyplot( resp ~ expl | facA*facB ,
data= mydata,
xlab='Explanatory',
ylab='Response',
panel= function(x,y){
panel.xyplot(x,y)
yhat <- fitted(mydata.nlme)
panel.xyplot(x,yhat$population,type='l')
}
)
This gives me an error on mismatching length of x and y,
althought a plot was generated properly without the last two
lines.
Any suggestion will be appreciated.
Winson Taam
Department of Math. & Stat.
Oakland University
Rochester, MI 48309
tel: 248-370-3438
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news