Skip to contents

Compare feature effects with untruncated competitor differences

Usage

plot_feature_rankings(
  fit,
  factor,
  n = 15L,
  direction = "positive",
  representation = NULL,
  compare_factors = NULL
)

Arguments

fit

Native fit or a view from standardize_factors().

factor

One factor ID, e.g. "F1". A fit with no biological factors cannot supply a feature selection.

n

Maximum number of features per selection (default 20).

direction

"absolute" (default), "positive" or "negative": which effects are eligible.

representation

For a native fit: a matched view or standardize_factors() settings.

compare_factors

Competition pool; NULL uses all factors.

Value

Scatter plot; data include original signed effects, raw differences and labels from the union of top effect and top difference candidates.

Details

Unlike least-extreme margins, differences can oppose the target effect's sign. Negative direction reverses both plotting coordinates.

Author

Mikhael Manurung. Conceptual credit: Peter Carbonetto's pancreas tutorial.