Plot a two dimensional contour plot
matrix with spectral intensities.
number of contour levels.
minimum and maximum values at which to show contours.
minimum absolute value (as a fraction of zlim) at which to show contours.
width of contour lines.
title of the plot.
color of positive contours.
color of negative contours, defaults to lighter version of col_pos.
logical indicating whether to add to an existing plot (i.e. not start a new one).
label for x-axis, defaults to names(dimnames(datamat))[1].
label for y-axis, defaults to names(dimnames(datamat))[2].
a logical indicating whether a box should be drawn around the plot.
The first dimension of data_matrix is drawn along the x-axis and the second dimension is drawn along the y-axis.
If low_frac is specified, then there can actually be up to nlevels total positive contour levels and/or nlevels total negative contour levels, whichever has the larger magnitude in zlim. The other dimension will have the mirror image of those up to the relevant limit in zlim. Note that the levels do not actually go up to zlim. There are nlevels+1 log spaced levels calculated from the contour determined by low_frac up to the maximum absolute zlim, but the final level is not drawn because it is at the maximum absolute zlim.
If low_frac is set to NA, then the contour levels are calculated in the same way as contour, with there being approximately nlevels linearly spaced levels in a range close to zlim.
Note that this function does not directly take the data returned by read_nmrpipe. You must pass the int matrix from the value returned by that function.