Skip to content
Prev 278112 / 398502 Next

Lattice graph help

I just tried a litte bit with your dataset and hope to get a solution as 
wanted ;-)
On 21.11.2011 21:55 (UTC+1), Andrew McFadden wrote:
# you can use 'heif' more directly like in models
x=barchart( Titer ~ n | Test+Breed, data=heif,
   layout = c(2,4),

   # distance between rows
   between = list(y = c(0.5)),

   # x- and y-lables only onesided, ticks also onesided
   scales = list(x = list(alternating = 1, tck = c(1,0)),
             y = list(alternating = 1, tck = c(1,0))),

   xlab = "count (n)",
   ylab = "titer"
   )
# the best way I found for colouring was in useOuterStrips
useOuterStrips(x,
                strip = strip.custom(bg = "white"),
                strip.left = strip.custom(bg = "white")
                )

Hope this helps,
Rainer Hurling