diff --git a/DESCRIPTION b/DESCRIPTION index 187b5051e..d2bb0189a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: Seurat -Version: 4.0.5.9003 -Date: 2021-10-22 +Version: 4.0.5.9004 +Date: 2021-12-03 Title: Tools for Single Cell Genomics Description: A toolkit for quality control, analysis, and exploration of single cell RNA sequencing data. 'Seurat' aims to enable users to identify and interpret sources of heterogeneity from single cell transcriptomic measurements, and to integrate diverse types of single cell data. See Satija R, Farrell J, Gennert D, et al (2015) , Macosko E, Basu A, Satija R, et al (2015) , Stuart T, Butler A, et al (2019) , and Hao, Hao, et al (2020) for more details. Authors@R: c( diff --git a/NEWS.md b/NEWS.md index 4e0db768a..8a1df6b12 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,7 @@ - Add `min.cells.group` parameter to `FindConservedMarkers` ([#5079](https://github.com/satijalab/seurat/pull/5079)) - Set `do.center` to FALSE for `lsiproject` in `FindTransferAnchors` - Fix error message in `ReadMtx()` ([#5158](https://github.com/satijalab/seurat/issues/5158)) +- Add `label.color` parameter to `FeaturePlot` ([#5314](https://github.com/satijalab/seurat/pull/5314)) # Seurat 4.0.5 (2020-10-04) ## Changes diff --git a/R/visualization.R b/R/visualization.R index d751cae51..110cb3f93 100644 --- a/R/visualization.R +++ b/R/visualization.R @@ -986,6 +986,7 @@ FeaturePlot <- function( blend.threshold = 0.5, label = FALSE, label.size = 4, + label.color = "black", repel = FALSE, ncol = NULL, coord.fixed = FALSE, @@ -1268,7 +1269,8 @@ FeaturePlot <- function( plot = plot, id = 'ident', repel = repel, - size = label.size + size = label.size, + color = label.color ) } # Make FeatureHeatmaps look nice(ish) diff --git a/man/FeaturePlot.Rd b/man/FeaturePlot.Rd index f869e4c98..9d334631c 100644 --- a/man/FeaturePlot.Rd +++ b/man/FeaturePlot.Rd @@ -25,6 +25,7 @@ FeaturePlot( blend.threshold = 0.5, label = FALSE, label.size = 4, + label.color = "black", repel = FALSE, ncol = NULL, coord.fixed = FALSE, @@ -94,6 +95,8 @@ different colors and different shapes on cells. Only applicable if \code{raster \item{label.size}{Sets size of labels} +\item{label.color}{Sets the color of the label text} + \item{repel}{Repel labels} \item{ncol}{Number of columns to combine multiple feature plots to, ignored if \code{split.by} is not \code{NULL}}