View source: R/plotHighestExprs.R
plotHighestExprs | R Documentation |
Plot the features with the highest average expression across all cells, along with their expression in each individual cell.
plotHighestExprs(
object,
n = 50,
colour_cells_by = color_cells_by,
drop_features = NULL,
exprs_values = "counts",
by_exprs_values = exprs_values,
feature_names_to_plot = NULL,
as_percentage = TRUE,
swap_rownames = NULL,
color_cells_by = NULL,
assay.type = exprs_values,
by.assay.type = by_exprs_values
)
object |
A SingleCellExperiment object. |
n |
A numeric scalar specifying the number of the most expressed features to show. |
colour_cells_by |
Specification of a column metadata field or a feature to colour by, see |
drop_features |
A character, logical or numeric vector indicating which features (e.g. genes, transcripts) to drop when producing the plot. For example, spike-in transcripts might be dropped to examine the contribution from endogenous genes. |
exprs_values |
Alias to |
by_exprs_values |
Alias to |
feature_names_to_plot |
String specifying which row-level metadata column contains the feature names.
Alternatively, an AsIs-wrapped vector or a data.frame, see |
as_percentage |
logical scalar indicating whether percentages should be plotted.
If |
swap_rownames |
Column name of |
color_cells_by |
Alias to |
assay.type |
A integer scalar or string specifying the assay to obtain expression values from. |
by.assay.type |
A string or integer scalar specifying which assay to obtain expression values from,
for use in colouring - see |
This function will plot the percentage of counts accounted for by the top n
most highly expressed features across the dataset.
Each row on the plot corresponds to a feature and is sorted by average expression (denoted by the point).
The distribution of expression across all cells is shown as tick marks for each feature.
These ticks can be coloured according to cell-level metadata, as specified by colour_cells_by
.
A ggplot object.
example_sce <- mockSCE()
colData(example_sce) <- cbind(colData(example_sce),
perCellQCMetrics(example_sce))
plotHighestExprs(example_sce, colour_cells_by="detected")
plotHighestExprs(example_sce, colour_cells_by="Mutation_Status")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.