Skip to content

Lattice graphics with combined plot types

2 messages · Shawn Way, Deepayan Sarkar

#
On 12/15/05, Shawn Way <Shawn.Way at biogenidec.com> wrote:
You seem to have used a cutoff of 0.25 (rather than 0.5) in your example.
How about

         panel=function (x, y, ...) {
             below <- y < 0.25
             if (any(below))
                 panel.barchart(x[below], y[below], ...)
             if (any(!below))
                 panel.xyplot(x[!below], y[!below], ...,
                              col = 'red', cex = 2, pch = 16)
             panel.abline(h=0.25,col="red")
         }

?

Deepayan
--
http://www.stat.wisc.edu/~deepayan/