Description Usage Arguments Examples
This function allows plotting (png or tiff image files) of the corrected sample spectrum, the linear combination fit and the residual.
1 2 3 |
all.samples |
List of all samples |
all.standards |
List of all standards |
LCF.res |
Results from function fit_float() |
LC.vals |
The fitting range values for the linear combination fitting |
corr.norm |
Vector of the base-line correction and edge-step normalization values (vector of length 4) |
float |
Logical, default to FALSE |
exclude |
Logical, default to FALSE |
use.tiff |
Logical, default to FALSE |
E.zero |
Set E0, defaults to NULL |
set.plot.ymax |
Set maximum of plot y axis, defaults to NULL |
file.output |
Logical, default to FALSE |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(stdmix)
corr.spec.standards <- initial_load(specdat[1:4],
corr.norm = c(-36, -15, 37, 58))
corr.spec.samples <- initial_load(specdat[5:8],
corr.norm = c(-36, -15, 37, 58))
param.float <- expand.grid(pre.adj.1 = seq(-45,-30,5),
pre.adj.2 = seq(-19,-9,5), post.adj.1 = seq(34,40,2),
post.adj.2 = seq(50,65,5))
float.fit <- fit_float(all.samples = corr.spec.samples[1],
all.standards = corr.spec.standards, LC.vals = c(-14, 46),
float = param.float, ex.smaller = 0.05)
par(pty="s")
plot_LCF(all.samples = corr.spec.samples[1],
all.standards = corr.spec.standards,
LCF.res = float.fit[1,], LC.vals = c(-14,46),
corr.norm = c(-36, -15, 37, 58))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.