Skip to content
Prev 326419 / 398502 Next

Lattice barchart with error bars

On Jul 5, 2013, at 11:15 AM, Shaun Jackman wrote:

            
I like the TIE fighter label. Try this:

library(latticeExtra)
data(USCancerRates)
segplot(reorder(factor(county), rate.male) ~ LCL95.male + UCL95.male,
        data = subset(USCancerRates, state == "Washington"),
        draw.bands = FALSE, centers = rate.male, 
        segments.fun = panel.arrows, ends = "both", 
        angle = 90, length = 1, unit = "mm")

It's what Sarkar has recommended in the past when this request has been posted.