HotLoadings.top_features: Select top features

Description Usage Arguments Value See Also

View source: R/top_features.R

Description

Select top features

Usage

1
2
3
4
5
6
7
8
9
HotLoadings.top_features(
  data.splsda,
  feature_names,
  component = c("comp 1"),
  Y_name,
  n_top = 15,
  offset = 0.005,
  order = TRUE
)

Arguments

data.splsda

A sPLS-DA object from mixomics.

feature_names

A character vector containing feature names.

component

A character string containing sPLS-DA's component name.

Y_name

A character string indicating which is the variable associated with component specified. Must be a dicothomous variable.

n_top

An integer number indicating how many top associated features to keep. (Default = 15)

offset

A value indicating the amount of justification from axis for possible plots. (Default = 0.005)

order

A boolean value indicating if the loadings should be separately ordered by positives and negatives (Default = TRUE). If FALSE loadings are ordered using their absolute value.

Value

A data frame containings n_top feature associated with component with information about interesting Y_name variable.

See Also

HotLoadings.names for extraction of feature_names


mcalgaro93/HotLoadings documentation built on June 13, 2021, 10:01 p.m.