PlotFTIR (development version)
add_wavenumber_marker()andadd_band()now respectlabel_aesthetics = list(vjust = ...)so peak labels can be vertically offset to reduce overlap (@pbulsink, #38).fit_peaks()now documents explicit fitting controls and clarifies that automatic peak discovery is a heuristic starting point for fitting, not a validated deconvolution standard (#33).Peak fitting functionality added with
find_ftir_peaks(),fit_peaks(), and related functions. (#33)Added Raman spectral plotting with
plot_raman(),read_raman(), and utilities for baseline correction, smoothing, and peak finding (#34).smooth_spectra(),baseline_correct(),normalize_raman(), andfind_peak_maxima()acceptsample_ids = NULLto select every sample (#34).smooth_spectra()andbaseline_correct()now report a clear error when given FTIR absorbance or transmittance data instead of Raman spectra (#34).normalize_raman()now rejects spectra with a non-positive maximum and reportsNAintensity values rather than silently propagating them (#34).read_raman()captures single-#header metadata, reports true file line numbers for invalid data, and warns about malformed rows (#34).
PlotFTIR 1.3.0
CRAN release: 2026-07-21
-
print()now provides pretty printing for PlotFTIR data structures, showing spectral range, resolution, intensity type, number of samples, and sample IDs. (#27) - Updated to use
ggplot2::coord_transform()instead ofcoord_trans, which is now deprecated. (#25) - Resolved issue with data exchange with
irpackage. (#35)
PlotFTIR 1.2.1
CRAN release: 2025-08-25
- Updates (mostly to testing) to comply with pending ggplot2 4.0.0 release (#23)
PlotFTIR 1.1.0
CRAN release: 2025-02-05
- Added ability to set default language in
options(). (#10) - Added ability to highlight one or more samples in spectra. (#15)
- Added ability to add a background shaded band (like a wide marker) to indicate a given range. (#16)
- Added attributes to imported data to simplify internal calculation of thingslike y axis units. (#17)
