From d29371118238e4a2644c01162463f43451ff8503 Mon Sep 17 00:00:00 2001 From: zhanghao-njmu <542370159@qq.com> Date: Mon, 20 Nov 2023 23:02:06 +0800 Subject: [PATCH] Update examples for CellDimPlot function --- R/SCP-plot.R | 2 +- man/CellDimPlot.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/SCP-plot.R b/R/SCP-plot.R index ad4a980f..33ddbd21 100644 --- a/R/SCP-plot.R +++ b/R/SCP-plot.R @@ -1249,7 +1249,7 @@ BlendRGBList <- function(Clist, mode = "blend", RGB_BackGround = c(1, 1, 1)) { #' #' # Add various shape of marks #' CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE) -#' CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE, mark_expand = unit(1, "mm")) +#' CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE, mark_expand = grid::unit(1, "mm")) #' CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE, mark_alpha = 0.3) #' CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE, mark_linetype = 2) #' CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE, mark_type = "ellipse") diff --git a/man/CellDimPlot.Rd b/man/CellDimPlot.Rd index f3aa3e8c..bbc30e44 100644 --- a/man/CellDimPlot.Rd +++ b/man/CellDimPlot.Rd @@ -395,7 +395,7 @@ CellDimPlot(pancreas_sub, # Add various shape of marks CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE) -CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE, mark_expand = unit(1, "mm")) +CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE, mark_expand = grid::unit(1, "mm")) CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE, mark_alpha = 0.3) CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE, mark_linetype = 2) CellDimPlot(pancreas_sub, group.by = "SubCellType", reduction = "UMAP", add_mark = TRUE, mark_type = "ellipse")