[R] query in plot(intervals....

2013-05-14 Thread Michelle Morters
Hi - I would like the plot ordered by intercept. Ordering is doable if the intervals function is substituted with the confint function and order=1 included. Is ordering doable with intervals function, please? Thanks! M results-lmList(x~slope|id,data) plot(intervals(results))

Re: [R] query in plot(intervals....

2013-05-14 Thread ilai
On Tue, May 14, 2013 at 10:05 AM, Michelle Morters mm...@hermes.cam.ac.ukwrote: Hi - I would like the plot ordered by intercept. One way will be to tweak the ?intervals.lmList object require(nlme) fm1 - intervals(lmList(distance ~ age | Subject, Orthodont)) fm2 - fm1[order(fm1[,2,1]),,]