R/pls-vip.R
create_vip_rects.Rd
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.
create_vip_rects(df_vip)
Data.frame containing vectors start
(numeric; wavenumber),
end
(numeric; wavenumber) and group (integer; values are
1:length(start))
.