plot_feature_rank: Feature Rank plot

Description Usage Arguments Value

View source: R/plot_feature_rank.R

Description

Feature Rank plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
plot_feature_rank(
  value,
  group = NULL,
  group_names = NA,
  split = NULL,
  celltype_group = NULL,
  cell_color_by = NULL,
  combine = TRUE,
  nrow = 1,
  threshold_y = NA,
  title = NA,
  remove_ylabel = FALSE,
  remove_ylabel_width = 0.92,
  labels = c(),
  widths = NULL,
  ...
)

Arguments

value

Value used for ranking and x-axis (i.e. UMI count).

group

Grouping variable for comparison (i.e. titration).

group_names

Rename group levels (i.e. can be used to append concentration or other info that is marker specific). Named vector (or list of such if split is set).

split

Splitting variable (generates individual plot for each group)

celltype_group

Celltype for grouping cells (i.e. lineage).

cell_color_by

Variable for coloring cells (i.e. celltype). Used for "barcode" plot.

combine

Should plot components be combined (default). If FALSE, a list of plot components will be returned.

nrow

Number of rows to use when wrapping

threshold_y

If not NULL, a threshold line will be drawn at a the set rank. If a single value, same threshold is set for all splits. When splitting, multiple values can be given in a vector (named by split)

title

If not NA, title will be set. If a single value title only first panel will get title. When splitting, multiple values can be given in a vector (named by split)

remove_ylabel

Should y-labels for all but the first panel be removed?

remove_ylabel_width

Decrease relative width of non-first plots by this factor to account for removed y-labels in others

...

Passed on to plot_feature_rank_single().

Value

ggplot2 object or list of ggplot2 objects (if combine=FALSE)


Terkild/scfeaturerank documentation built on March 6, 2021, 1:04 p.m.