Displays the sPLS correlation circle plot, but uses available feature metadata to display feature names.
Arguments
- spls_res
The output from
mixOmics::spls()
orspls_run()
.- mo_data
A MultiDataSet::MultiDataSet object.
- label_cols
Character or named list of character, giving for each dataset the name of the column in the corresponding features metadata to use as label. If one value, will be used for all datasets. If list, the names must correspond to the names of the datasets in
mo_data
. Default value isfeature_id
, i.e. by default the ID of the features will be used as label.- truncate
Integer, width to which the labels should be truncated (to avoid issues with very long labels in plots). If
NULL
(default value), no truncation will be performed.- ...
Additional arguments passed to
mixOmics::plotVar()
.
Value
A plot (see mixOmics::plotVar()
).
Examples
if (FALSE) { # \dontrun{
# Use the default features ID for the plot
spls_plot_var(
spls_final_run,
mo_data,
"feature_id",
overlap = FALSE,
cex = c(3, 3),
comp = 1:2
)
# Using a different column from the feature metadata of each omics dataset
spls_plot_var(
spls_final_run,
mo_presel_supervised,
c(
"rnaseq" = "Name",
"metabolome" = "name"
),
overlap = FALSE,
cex = c(3, 3),
comp = 1:2
)
} # }