dankelley/oce — Issue #163: Align x-axes of multipanel imagep() plots, but with one palette()
Author: richardsc
Created: 2011-11-04 19:02:19+00:00
State: open

Example:

data(adp)
par(mfrow=c(2,1))
imagep(time(adp), distance(adp), velocity(adp)[,,1], col=oceColorsJet, zlim=c(-1,1), breaks=seq(-1, 1, 0.2), drawPalette=TRUE)
imagep(time(adp), distance(adp), velocity(adp)[,,1], col=oceColorsJet, zlim=c(-1,1), breaks=seq(-1, 1, 0.1), drawPalette=FALSE)

In other words, something similar to the functionality of using `drawPalette()` -- i.e. `drawPalette` called with no args so that it just saves the space.