data("raman_hdpe")
plot(raman_hdpe)
# Process spectra with range restriction and baseline subtraction
process_spec(raman_hdpe,
restrict_range = TRUE,
restrict_range_args = list(min = 500, max = 3000),
subtr_baseline = TRUE,
subtr_baseline_args = list(type = "polynomial",
polynomial = 8)) |>
plot()
# Process spectra with smoothing and derivative
process_spec(raman_hdpe,
smooth_intens = TRUE,
smooth_intens_args = list(
polynomial = 3,
window = 11,
derivative = 1
)
) |>
plot()
Run the code above in your browser using DataLab