Skip to content
Prev 179239 / 398506 Next

A variation on the bar plot

It's sometimes called a pyramid plot.

The plotrix package has one. See ?pyramid.plot
Hi all,
I cannot think of the technical name of this plot, but I want to create
a
plot with the data below that looks like two back-to-back horizontal bar
plots.
Ideally, there would be a vertical line in the center of the plot at
zero,
and on the right hand side would be 4 bars representing the values for
2007,
and on the left side of the vertical line would be the corresponding
values
for 2005.  Even though values would be on the left side of the zero
line, it
doesn't mean they are negative, I just want to compare changes in time.
2005  2007
11.42 11.76
11.93 11.97
4.06   4.53 
4.29   4.47 

Hope this is clear,
Thanks in advance.

dxc13