View source: R/PLSR_from_file_and_predict_second_dataset.R
Builds PLS model from training dataset and predicts second dataset Writes out predicted.scores of the second dataset Plots original PLS, projected samples only, and projected samples ontop of original PLS
1 2 3 4 |
file |
file for X matirx |
file2 |
file for test data matrix |
sample.names |
Vector of sample names in X matrix |
sample.type |
vector of sample groups |
y.response |
numeric vector of response values in same order as samples |
sample.names2 |
Vector of sample names in 2nd dataset, if needed |
sample.type2 |
Vector of sample types in 2nd dataset, if needed |
train_string |
string to insert in file name of predicted scores |
title |
title of the plot |
comp.x, comp.y |
comps to display |
scale |
default=T |
labels |
label the plot, default = T |
fread |
default=F, use fread for large input files |
comp |
number of components to compute |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.