create_vip_rects: Create a data frame containing start and end positions...

View source: R/pls-vip.R

create_vip_rectsR Documentation

Create a data frame containing start and end positions (wavenumbers) where variable importance in projection (VIP) is > 1

Description

Given a data frame with VIP outputs (wavenumber and vip columns), start and end values denoting spectral regions where VIP > 1 are returned as data frame. The functions can be used as helper function for plotting VIP.

Usage

create_vip_rects(df_vip)

Arguments

df_vip

Data frame containing wavenumber and vip columns (numeric)

Value

Data.frame containing vectors start (numeric; wavenumber), end (numeric; wavenumber) and group (integer; values are 1:length(start)).


philipp-baumann/simplerspec documentation built on Oct. 3, 2023, 12:13 p.m.