Description Usage Arguments Author(s) See Also
Plotting overlayed NMR specra. This function is based on ggplot2, a high-level plotting R package. For large ppm ranges the computation time is relatively long, so the chemical shift
range should be as small as possible. For list argument an
, the first element describes the colour and must be defined (even if it is only a single value). If colour and line width are specified, then at least one list elements of an
must have the same length as X
.
1 2 | specOverlay(X, ppm, shift = c(-0.01, 0.01), an = list("facet", "col",
"ltype"), alp = 0.7, size = 0.5, title = "", ...)
|
X |
Input NMR data matrix with row representing spectra. |
ppm |
ppm vector with its length equals to |
shift |
Chemical shift area to be plotted. This should be kept as small as possible (see Details). |
an |
List with one to three elements specifying facetting, colour and linetype (see Details). |
alp |
Alpha value for lines (number between 0 and 1 whereas 0 is fully transparent and 1 is fully opaque). |
size |
Line width (0.5 is a good start). |
title |
Plot title. |
... |
Additional paramters passed on to ggplot's facet function. |
Torben Kimhofer tkimhofer@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.