The function EachRGBSpaHeatMap is used to visualize the RGB colors of 3-dimensional embeddings on spatial coordinates.

EachRGBSpaHeatMap(obj, ...)

# S3 method for list
EachRGBSpaHeatMap(
  obj,
  title_name = NULL,
  combine = TRUE,
  layout.dim = c(round(length(obj[[2]])/2), 2),
  no_axis = FALSE,
  pt_size = 2,
  base_size = 10,
  border_col = "gray",
  axis_names = c("Coord x", "Coord y"),
  no_axis_name = FALSE,
  ...
)

# S3 method for SRTProject
EachRGBSpaHeatMap(
  obj,
  batch = NULL,
  plot_type = c("UMAP", "tSNE"),
  layout.dim = NULL,
  combine = TRUE,
  title_name = NULL,
  no_axis = TRUE,
  pt_size = 2,
  base_size = 10,
  border_col = "gray",
  axis_names = c("Coord x", "Coord y"),
  no_axis_name = FALSE,
  ...
)

Arguments

obj

A SRTProject object.

...

Arguments passed to ggarrange.

title_name

a string, the title of plot.

combine

a logical value, whether plot all on a figure. If TRUE, all figures are plotted; otherwise, return a list with each plot as component. TRUE by default.

layout.dim

a 2 integer vector, the dimension in the layout of plots when combine = TRUE.

no_axis

a logical value, whether display the axis in plot.

pt_size

a positive real, the point size in plot.

base_size

a positive real, the baseline text size in the plot

border_col

a string, the color of border in plot.

axis_names

a 2 string vector, the axis names in plot.

no_axis_name

a logical value, whether display the axis name in plot.

batch

a string vector or positive integer vector, the batch names or IDs to be plotted.

plot_type

a string, the type of plot, one of "UMAP" and "tSNE".

common.legend

a logical value, whether combine the legend of multiple plots. TRUE by default.