View source: R/ropls_helpers.R
| get_plotdata | R Documentation |
Extracts relevant data from an "opls" object for making annotated score plots with ggplot2 or other plotting packages.
get_plotdata(model)
model |
An object created by |
A list containing dataframes for scores, loadings, axis statistics (
## Not run:
library(ropls)
data(sacurine)
sacurine.oplsda <- opls(sacurine$dataMatrix, sacurine$sampleMetadata[, "gender"],
predI = 1,
orthoI = NA)
df <- get_plotdata(sacurine.oplsda)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.