Skip to content
Prev 303979 / 398513 Next

Origin of coordinate system

Hello,
On Aug 23, 2012, at 6:08 AM, Richard M?ller wrote:

            
I think I know what you mean. I suppose that you have already set up a suite of wrapper functions around base graphics for your convenience?  That's the direction I would go, but it sounds you may have done so already.  Like the following?

myDepthPlot <- function(depth, value, value2, ylim = rev(range(depth)), ...) 
  plot(value, depth, ylim = ylim, ...)
  if (!missing(value2)) myDepthPoints(depth, value2, ...)
}

myDepthPoints <- function(depth, value, ...) { points(value, depth, ...) }

Also, you may want to look into Dan Kelley's most excellent OCE package: http://dankelley.github.com/oce/

Neither of the above reconfigures the coordinate system, but they allow the user to access functionality as if it were.

Cheers,
Ben
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd. P.O. Box 475
West Boothbay Harbor, Maine   04575-0475 
http://www.bigelow.org