Skip to content
Prev 326421 / 398502 Next

Lattice barchart with error bars

Yes! Thank you, David. That's exactly what I'm I'm looking for. For
the record, here's a couple pages leading to this answer:

http://www.hep.by/gnu/r-patched/r-faq/R-FAQ_89.html
http://latticeextra.r-forge.r-project.org/man/segplot.html
http://rgm3.lab.nig.ac.jp/RGM/r_function?p=latticeExtra&f=segplot

For a related question, what's the tidiest way to calculate the
medians and confidence intervals? Currently I'm using `boxplot`:

require(datasets)
ci <- with(boxplot(weight ~ Diet, ChickWeight), data.frame(
  Diet = names,
  median = stats[3,],
  lower = conf[1,],
  upper = conf[2,]))

Cheers,
Shaun
On 5 July 2013 11:28, David Winsemius <dwinsemius at comcast.net> wrote: