Learn R Programming

SCpubr

SCpubr provides a streamlined way of generating publication ready plots for known Single-Cell visualizations in a "publication ready" format (SCpubr). This is, the aim is to automatically generate plots with the highest quality possible, that can be used right away or with minimal modifications for a research article.

Installation

SCpubr can be installed via:

# From CRAN - Official release:
install.packages("SCpubr")

# From GitHub - Latest stable development version:
if(!requireNamespace("devtools", quietly = TRUE)){
  install.packages("devtools") # If not installed.
}

devtools::install_github("enblacar/SCpubr", ref = "v2.0.0-dev-stable")

By default, SCpubr downloads without installing any of the required dependencies. A comprehensive report of which dependencies are still missing and which functions can be run is available through:

SCpubr::package_report(extended = TRUE)

For tutorials, check SCpubr's reference manual.

Updates

SCpubr is an active package currently aiming to improve and add new functionalities.

Keep track of our new updates in the NEWS page!

Citation

To cite SCpubr in your publications, please use:

Blanco-Carmona, E. Generating publication ready visualizations 
for Single Cell transcriptomics using SCpubr. bioRxiv (2022) 
doi:10.1101/2022.02.28.482303.

Contact

scpubr@gmail.com

Copy Link

Version

Install

install.packages('SCpubr')

Monthly Downloads

1,863

Version

3.0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Enrique Blanco-Carmona

Last Published

January 9th, 2026

Functions in SCpubr (3.0.1)

do_ChordDiagramPlot

Generate a Chord diagram.
do_CellularStatesPlot

Cellular States plot.
do_ColorPalette

Generate color scales based on a value.
do_ColorBlindCheck

Generate colorblind variations of a given color palette.
do_ActivityHeatmap

Compute affinity of gene sets to cell populations using decoupleR.
do_BarPlot

Create Bar Plots.
do_BeeSwarmPlot

BeeSwarm plot.
do_BoxPlot

Generate Box Plots.
do_AlluvialPlot

Generate Alluvial plots.
do_CNVHeatmap

Display CNV scores from inferCNV as Feature Plots.
do_CorrelationHeatmap

Create correlation matrix heatmaps.
do_ExpressionHeatmap

Create heatmaps of averaged expression by groups.
do_LoadingsHeatmap

Compute a heatmap summary of the top and bottom genes in the PCA loadings for the desired PCs in a Seurat object.
do_GroupwiseDEHeatmap

Compute a dotplot with the results of a group-wise DE analysis.
do_LigandReceptorPlot

Visualize Ligand-Receptor analysis output.
do_DotPlot

This function is a wrapper for DotPlot. It provides most of its functionalities while adding extra. You can
do_MetadataHeatmap

Compute a heatmap of categorical variables.
do_EnrichmentHeatmap

Create enrichment scores heatmaps.
do_DimPlot

Wrapper for DimPlot.
do_FeaturePlot

Wrapper for FeaturePlot.
do_NebulosaPlot

Wrapper for Nebulosa::plot_density in Seurat.
do_SCEnrichmentHeatmap

Perform a single-cell-based heatmap showing the enrichment in a list of gene sets.
do_RidgePlot

Create ridge plots.
do_RankedExpressionHeatmap

Compute a heatmap of expression of genes on the context of a dimensional reduction component.
do_TFActivityHeatmap

Plot TF Activities from decoupleR using Dorothea prior knowledge.
do_PathwayActivityHeatmap

Plot Pathway Activities from decoupleR using Progeny prior knowledge.
do_SCExpressionHeatmap

Perform a single-cell-based heatmap showing the expression of genes.
do_RankedEnrichmentHeatmap

Compute a heatmap of enrichment of gene sets on the context of a dimensional reduction component.
do_StripPlot

Generate a Strip plot.
do_PackageReport

Generate a status report of SCpubr and its dependencies.
doc_function

Mock function used to document all main function.
named_list

Named list.
do_WafflePlot

Display the enriched terms for a given list of genes.
do_ViolinPlot

Wrapper for VlnPlot.
do_TermEnrichmentPlot

Display the enriched terms for a given list of genes.
do_VolcanoPlot

Compute a Volcano plot out of DE genes.
named_vector

Named vector.
human_chr_locations

Chromosome arm locations for human genome GRCh38.