plot_corr2d | R Documentation |
plot_corr2d
plots two-dimensional correlation spectra either
as an image or a contour plot. Red color indicates positive
correlations, while blue color shows negative ones.
plot_corr2d( Obj, what = Re(Obj$FT), specx = Obj$Ref1, specy = Obj$Ref2, xlim = NULL, ylim = NULL, xlab = expression(nu[1]), ylab = expression(nu[2]), Contour = TRUE, axes = 3, Legend = TRUE, N = 20, zlim = NULL, Cutout = NULL, col = par("col"), lwd = par("lwd"), lwd.axis = NULL, lwd.spec = NULL, cex.leg = NULL, at.xaxs = NULL, label.xaxs = TRUE, at.yaxs = NULL, label.yaxs = TRUE, line.xlab = 3.5, line.ylab = 3.5, ... )
Obj |
List from |
what |
Real numeric matrix containing the z-values that should be plotted. |
specx, specy |
Numeric vector containing the data that should be plotted
on top ( |
xlim, ylim |
Numeric vector with two values indicating the borders
of the 2D plot. Also truncates |
xlab, ylab |
Character or expression containing the text that will
be plotted on the bottom ( |
Contour |
Logical: Should a contour ( |
axes |
Integer ranging from 0 to 3. Should the axis of the 2D plot be drawn? "0" means no axes, "1" only bottom axis, "2" only right axis and "3" both axes are drawn. |
Legend |
Logical: Should a color legend be plotted in the top right corner? |
N |
Positive, non-zero integer indicating how many contour or image levels should be plotted. |
zlim |
Numeric vector with two values defining the z-range of the 2D plot. |
Cutout |
Numeric vector with two values defining which z-values should not be plotted. Use with care, because this can generate misleading 2D plots. |
col |
A specification for the plotting color of the reference spectra
(top and left), axes, axes ticks and the central plot surrounding box.
See |
lwd |
A numeric value which sets the line width in the contour plot. See
|
lwd.axis |
A numeric value which sets the line width for axes and the
central plot surrounding box. See |
lwd.spec |
A numeric value which sets the line width in the reference
spectra on top and to the left. See |
cex.leg |
A numerical value giving the amount by which numbers at the
legend should be magnified. See |
at.xaxs, at.yaxs |
The points at which tick-marks are to be drawn at the
x- and y-axis, respectively. See |
label.xaxs, label.yaxs |
This can either be a logical value specifying
whether (numerical) annotations are to be made at the tickmarks of the
x- and y-axis, or a character or expression vector of labels to be
placed at the tickpoints of the x- and y-axis. See
|
line.xlab, line.ylab |
Numeric value on which MARgin line the x- and
y-label is plotted, respectively, starting at 0 counting outwards. See
|
... |
Additional arguments either passed to
|
For the synchronous correlation spectrum the real component (Re
)
of the complex correlation matrix must be plotted. The asynchronous
spectrum is the respective imaginary component (Im
).
Cutout
can be used to leave out smaller (noise) contributions,
but should be used with care as it can be used to create misleading
2D correlation plots. See references for interpretation rules (so
called Noda rules).
For interpretation rules see:
I. Noda (2006) <DOI:10.1016/j.molstruc.2005.12.060>
R. Geitner et al. (2019) <DOI:10.18637/jss.v090.i03>
See plot_corr2din3d
for 3D plots.
data(FuranMale, package = "corr2D") twod <- corr2d(FuranMale, Ref1 = FuranMale[1, ], corenumber = 1) plot_corr2d(twod, xlab = expression(paste("relative Wavenumber" / cm^-1)), ylab = expression(paste("relative Wavenumber" / cm^-1))) plot_corr2d(twod, at.xaxs = c(1560, 1585, 1610), label.xaxs = c(1560, 1585, 1610), col = 2, lwd = 3, col.axis = 3, col.lab = 4, Legend = FALSE, cex.lab = 3, xlab = "Large x label", ylab = "Large y label", line.xlab = 5, line.ylab = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.