Visualize the expressions of the selected features (genes) for all cells/spots.

EachGCHeatMap(
  obj,
  features,
  batch = NULL,
  layout.dim = NULL,
  common.legend = FALSE,
  cell_label = "Domain",
  fill_legend_title = "Expression",
  do.scale = TRUE,
  grp_label = FALSE,
  pt_size = 4,
  grp_color = NULL,
  ncol.legend = 1,
  legend.position = "right",
  axis_text_y = TRUE,
  y_text_size = 5,
  combine = TRUE,
  ...
)

# S3 method for SRTProject
EachGCHeatMap(
  obj,
  features,
  batch = NULL,
  layout.dim = NULL,
  common.legend = FALSE,
  cell_label = "Domain",
  fill_legend_title = "Expression",
  do.scale = TRUE,
  grp_label = FALSE,
  pt_size = 4,
  grp_color = NULL,
  ncol.legend = 1,
  legend.position = "right",
  axis_text_y = TRUE,
  y_text_size = 5,
  combine = TRUE,
  ...
)

# S3 method for SpatialExperiment
EachGCHeatMap(
  obj,
  features,
  batch = NULL,
  layout.dim = NULL,
  common.legend = FALSE,
  cell_label = "Domain",
  fill_legend_title = "Expression",
  do.scale = TRUE,
  grp_label = FALSE,
  pt_size = 4,
  grp_color = NULL,
  ncol.legend = 1,
  legend.position = "right",
  axis_text_y = TRUE,
  y_text_size = 5,
  combine = TRUE,
  ...
)

Arguments

obj

a SRTProject object or a SpatialExperiment object.

features

a string vector, a group of selected genes' names.

cell_label

a string, specify name of clusters.

fill_legend_title

a string, the legend title.

do.scale

a logical value, whether scale the gene expression for plot, default as TRUE.

grp_label

a logical value, whether display the cluster labels in plot.

pt_size

a positive real, the point size in plot.

grp_color

a string vector, the colors for each cluster in plot.

ncol.legend

a positive number, the number of columns for legend.

legend.position

a string, the postion of legend.

axis_text_y

a logical value, whether display the tick text in y-axis.

y_text_size

a positive real, the text size for y-axis.

combine

a logical value, whether put all plots on one figure, default as TRUE.

...

other arguments pass to ggarrange.

Value

Returns a ggplot object or a list of ggplot objects.

See also

None