filterDistributions
¶
filterDistributions
Description¶
show gene or cell distribution after filtering on expression threshold
Usage¶
filterDistributions(
gobject,
expression_values = c("raw", "normalized", "scaled", "custom"),
expression_threshold = 1,
detection = c("genes", "cells"),
plot_type = c("histogram", "violin"),
nr_bins = 30,
fill_color = "lightblue",
scale_axis = "identity",
axis_offset = 0,
show_plot = NA,
return_plot = NA,
save_plot = NA,
save_param = list(),
default_save_name = "filterDistributions"
)
Arguments¶
Argument |
Description |
---|---|
|
giotto object |
|
expression values to use |
|
threshold to consider a gene expressed |
|
consider genes or cells |
|
type of plot |
|
number of bins for histogram plot |
|
fill color for plots |
|
ggplot transformation for axis (e.g. log2) |
|
offset to be used together with the scaling transformation |
|
show plot |
|
return ggplot object |
|
directly save the plot [boolean] |
|
list of saving parameters from ``all_plots_save_function` <#allplotssavefunction>`_ |
|
default save name for saving, don’t change, change save_name in save_param |
Value¶
ggplot object
Examples¶
data(mini_giotto_single_cell)
# distribution plot of genes
filterDistributions(mini_giotto_single_cell, detection = 'genes')
# distribution plot of cells
filterDistributions(mini_giotto_single_cell, detection = 'cells')