| Draw {PepsNMR} | R Documentation |
Draws FIDs, spectra or their PCA scores/loadings.
Draw(Signal_data, type.draw = c("signal","pca"),
output = c("default","window","png","pdf"),
dirpath = ".",filename = "%003d", height = 480,
width = 640, pdf.onefile = TRUE, ...)
Signal_data |
Matrix containing the FIDs or spectra, one line per FID/spectrum. |
type.draw |
Either "signal" or "pca", which calls respectively |
output |
Specifies how to display the drawings:
|
dirpath |
The path to the directory where the png or pdf are outputted. |
filename |
The filenames of the png and pdf, see argument |
height |
Height of the png and pdf in pixels. |
width |
Width of the png and pdf in pixels. |
pdf.onefile |
Wen |
... |
The remaining arguments are passed either to |
Depending on the type.draw value, it can draw each row of Signal_data in a way described by subtype or the PCA scores or loadings (depending on the type.pca value) of all the FIDs/spectra in Signal_data.
BenoƮt Legat & Manon Martin
See Also DrawSignal and DrawPCA.
# Draw each signal Real part and Mod in separate png with name end001 end002, ...
# Draw the spectra
require(PepsNMRData)
Draw(FinalSpectra_HS, type.draw = "signal",
output="window",subtype="together")
# Draw a PCA
Draw(FinalSpectra_HS, type.draw="pca",output="window")