Closed gueyenono closed 3 years ago
Without looking in detail, I'm quite certain this is caused by confusion over the order in which x
and/or y
are given (probably y
). I think isoband assumes the coordinate origin is in the bottom left, since that's what all grid graphics functions assume. If you plot the isobands you get you'll certainly see that they're just flipped relative to your input.
I create a grid of values with a simple linear function and I attempt to get the coordinates of the contour at a specific
z
level (i.e.z = 150
). I do so with 3 different packages and the results obtained by theisoband::isolines()
function very unexpected. Note that I installed the development version in themaster
branch.Of the 3 methods in the code below, the results obtained by
contoureR::getContourLines()
are the best in the sense that they are the most accurate.