[R] Hmisc or Lattice plot with error bars, Depth (independent variable) on Y axis
Frank E Harrell Jr
f.harrell at vanderbilt.edu
Mon Oct 30 21:56:13 CET 2006
Mike Bock wrote:
> 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.
xYplot only supports vertical error bars
Frank
--
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
More information about the R-help
mailing list