plantphys / spectratrait

A tutorial R package for illustrating how to fit, evaluate, and report spectra-trait PLSR models. The package provides functions to enhance the base functionality of the R pls package, identify an optimal number of PLSR components, standardize model validation, and vignette examples that utilize datasets sourced from EcoSIS (ecosis.org)
GNU General Public License v3.0
11 stars 9 forks source link

Add internal example script using Ely et al internal sample dataset #65

Closed serbinsh closed 3 years ago

serbinsh commented 3 years ago

Target var: Narea

serbinsh commented 3 years ago

Done. Seems to be working:

https://github.com/TESTgroup-BNL/PLSR_for_plant_trait_prediction/blob/Rpackagify/inst/scripts/spectra-trait_ely_leafN_plsr_bootstrap_example.R

N_g_m2_Cal_Val_Histograms

N_g_m2_Cal_Val_Spectra

N_g_m2_PLSR_Component_Selection

N_g_m2_Cal_Val_Scatterplots

N_g_m2_Bootstrap_Regression_Coefficients

N_g_m2_PLSR_Validation_Scatterplot

@regnans of course the selection of the cal/val likely results in the slightly different fits stats here and your paper, but in general this new example using our package generally recreates your result!

serbinsh commented 3 years ago

done