Plot the top feature loadings for from a given reduction.

get_top_features(
  obj,
  reduction = NULL,
  n_features = 3,
  n_features_plot = 20,
  factors = seq(1, 10),
  invert_vars = FALSE,
  show_plot = TRUE,
  title = NULL,
  verbose = TRUE
)

Arguments

reduction

Reduction to use. If NULL, defaults to first available reduction.

n_features

Number of top features per factor to select.

n_features_plot

Number of top features to plot.

factors

Which factors to plot.

invert_vars

Switch the axes of factors and loadings in plot.

show_plot

Whether to print the plot or simply return it.

title

Plot title.

seurat

Seurat object.

Value

top_features data.table

Examples

data("DEGAS_seurat") top_features <- get_top_features(seurat = DEGAS_seurat)
#> Error in get_top_features(seurat = DEGAS_seurat): unused argument (seurat = DEGAS_seurat)