Displaying 1 result from an estimated 1 matches for "bathyometry".
Did you mean:
bathymetry
2009 Feb 11
0
contour( ..., method='edge') incompatible with xlim & ylim
...edge' option for the 'method' parameter doesn't work very
well (or at all?) when xlim and ylim are also set.
The following code should recreate and demonstrate the problem:
---------------------------------------------------------------------------------------
library(marelac)
data(Bathyometry)
B <- Bathymetry
xrange <- c(-150, -120)
yrange <- c(40,60)
par(mfrow=c(1,2))
### using xlim and ylim ####
contour(B, xlim=xrange, ylim=yrange, method='edge', main='x/y
limited')
#### using subsetting ####
x <- !is.na(cut(B$x,breaks=xrange))
y <- !is.na(cut(B$y,b...