Edge Rank Plot
MoleculeRankPlot.Rd
Plots the number of edges/molecules per component against the component rank
Usage
MoleculeRankPlot(object, ...)
# S3 method for data.frame
MoleculeRankPlot(object, group_by = NULL, ...)
# S3 method for Seurat
MoleculeRankPlot(object, group_by = NULL, ...)
Arguments
- object
A
data.frame
-like object or aSeurat
object- ...
Parameters passed to other methods
- group_by
A character specifying a column to group by
Examples
library(pixelatorR)
# Load example data as a Seurat object
pxl_file <- system.file("extdata/five_cells",
"five_cells.pxl",
package = "pixelatorR")
seur_obj <- ReadMPX_Seurat(pxl_file)
#> ✔ Created a 'Seurat' object with 5 cells and 80 targeted surface proteins
seur_obj
#> An object of class Seurat
#> 80 features across 5 samples within 1 assay
#> Active assay: mpxCells (80 features, 80 variable features)
#> 2 layers present: counts, data
# Plot with data.frame
MoleculeRankPlot(seur_obj[[]])
library(pixelatorR)
# Plot with Seurat object
MoleculeRankPlot(seur_obj)