Skip to contents

Package Setup

Functions to configure tidyspec environment

set_spec_wn()
Set the Default Wavenumber Column
check_wn_col()
Check the Currently Set Wavenumber Column

Data Import

Functions to read spectral data

spec_read()
Read Spectral Data from Various File Formats

Data Transformation

Functions to transform spectral data

spec_trans2abs()
Convert Spectral Data from Transmittance to Absorbance
spec_abs2trans()
Convert Absorbance Data to Transmittance
spec_diff()
Apply Differentiation to Spectral Data
spec_filter()
Filter spectral data by wavenumber range
spec_select()
Select Specific Columns in a Spectral Data Frame
spec_norm_01()
Normalize Spectral Data to the [0, 1] Range
spec_norm_minmax()
Normalize Spectral Data to a Specified Range
spec_norm_var()
Standardize Spectral Data to Unit Variance
spec_smooth_avg()
Apply Smoothing to Spectral Data Using a Moving Average
spec_smooth_sga()
Apply Savitzky-Golay Smoothing to Spectral Data

Baseline Correction

Functions for baseline correction and extraction

spec_blc_rollingBall()
Apply Rolling Ball Baseline Correction to Spectral Data
spec_blc_rubberband()
Apply Rubberband Baseline Correction to Spectral Data
spec_bl_rubberband()
Extract Rubberband Baseline from Spectral Data
spec_bl_rollingBall()
Extract Rolling Ball Baseline from Spectral Data
demo_rolling_ball()
Usage Example and Test
plot_rolling_ball()
Plot Rolling Ball Results
rolling_ball()
Rolling Ball Baseline Correction
rolling_ball_morphology()
Enhanced Rolling Ball with Mathematical Morphology
smooth_baseline()
Baseline Smoothing

Interpolation and Resampling

Functions for spectral interpolation and grid alignment

spec_interpolate_left()
Interpolate Spectral Data to Match Reference Wavenumbers (Left Join Style)
spec_interpolate_right()
Interpolate Spectral Data to Include Both Grids (Right Join Style)
spec_interpolate_regular()
Interpolate to Regular Grid

Plotting and Visualization

Functions for plotting spectral data

spec_smartplot()
Create a Custom Plot for Spectral Data
spec_smartplotly()
Create an Interactive Plot for Spectral Data using Plotly

PCA

Principal Component Analysis for spectral data

spec_pca()
Perform Principal Component Analysis (PCA) on Spectral Data
spec_pca_screeplot()
Scree plot for PCA results
spec_pca_wn_contrib()
Compute Wavenumber Contributions to Principal Components

Data

CoHAspec
CoHAspec Dataset