[R] sorting in lmList object

emb7@st-andrews.ac.uk emb7 at st-andrews.ac.uk
Thu Feb 13 00:58:18 CET 2003


Hi all,
Forgive me if this is an obvious one....
I want to make a plot of confidence intervals from an lmList object with a 
collection of simple linear models (lm(y~x)) using:

plot(intervals(mylmList))

and sort the plot by increasing mean values for the intercept. Is there an easy 
way of doing this? I've tried the "order()" and "sort.list()" functions, but I 
suspect they only work for data frames? Can I sort directly when plotting, or 
do I have to sort the whole lmList object?

Thanks!

Martin




------------------------------------------------------
Sent through WebMail: http://webmail.st-andrews.ac.uk/




More information about the R-help mailing list