[R] Hmisc or Lattice plot with error bars, Depth (independent variable) on Y axis

From: Mike Bock <mbock_at_environcorp.com>
Date: Mon 30 Oct 2006 - 20:37:11 GMT


I am trying to create some plots of concentration versus depth. I want Depth on the Y axis and the concentrations on the X axis. I also need to plot error bars.

The xYplot function in Hmisc is very nearly ideal but I have to put depth on the x-axis to get it to work. When I transpose the X and Y axes in the xYplot command, the error bars disappear (no surprise given the help file). It there a way to get the plot command to flip the axes? That would be ideal as I could use the grouping functions in xYplot and save a bunch of work.

If no such command exists any other ideas?

I looked at the Dotplot command but the depths are not evenly spaced so I don't think that will work.

Thanks in advance

Mike

Michael J Bock, PhD
ENVIRON International Corp.  

This message contains information that may be confidential, ...{{dropped}}



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue Oct 31 07:47:54 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 31 Oct 2006 - 05:30:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.