Skip to content

Fit lines in intxplot

2 messages · Peter Ehlers, arun

#
On 2012-05-31 21:41, arun wrote:
Is this what you have in mind:

library(HH)
  intxplot(Response ~ time, data = dat4G, groups = trt,
    panel = function(x, y, subscripts, groups, ...){
      panel.intxplot(x, y, subscripts, groups)
      panel.superpose(x, y, ..., panel.groups = panel.lmline,
                     groups = groups, subscripts = subscripts)
    })

See the bwplot example in ?panel.lmline.

Notice that I've stripped the unnecessary titles, etc. in order to
produce a less bloated example. I've alse made it clear that the
intxplot() function is in the HH package (which you should have said).

Peter Ehlers
--
#
Hi Peter,
Thanks for the help.? It is exactly what I wanted.

Sorry, I forgot to post the library name.

A.K.



----- Original Message -----
From: Peter Ehlers <ehlers at ucalgary.ca>
To: arun <smartpink111 at yahoo.com>
Cc: R help <r-help at r-project.org>
Sent: Friday, June 1, 2012 7:32 AM
Subject: Re: [R] Fit lines in intxplot
On 2012-05-31 21:41, arun wrote:
Is this what you have in mind:

library(HH)
? intxplot(Response ~ time, data = dat4G, groups = trt,
? ? panel = function(x, y, subscripts, groups, ...){
? ? ? panel.intxplot(x, y, subscripts, groups)
? ? ? panel.superpose(x, y, ..., panel.groups = panel.lmline,
? ? ? ? ? ? ? ? ? ?  groups = groups, subscripts = subscripts)
? ? })

See the bwplot example in ?panel.lmline.

Notice that I've stripped the unnecessary titles, etc. in order to
produce a less bloated example. I've alse made it clear that the
intxplot() function is in the HH package (which you should have said).

Peter Ehlers
--