Description Usage Arguments Details Value Examples
View source: R/plotHighestExprs.R
Plot the features with the highest average expression across all cells, along with their expression in each individual cell.
1 2 3 4 5 6 7 8 9 10 11 |
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 |
A integer scalar or string specifying the assay to obtain expression values from. |
by_exprs_values |
A string or integer scalar specifying which assay to obtain expression values from,
for use in colouring - see |
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 |
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.
1 2 3 4 5 6 | 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.