Plot the embeddings for each SRT data
EachEmbedPlot(obj, reduction = NULL, batch = NULL, ...)
# S3 method for SpatialExperiment
EachEmbedPlot(
obj,
reduction = NULL,
colour_by = NULL,
batch = NULL,
combine = TRUE,
base_size = 15,
layout.dim = NULL,
common.legend = TRUE,
legend.position = "right",
add_border_box = FALSE,
no_axis = TRUE,
...
)
an object with class SpatialExperiment
.
a string, speficify which reduction slot is used to plot. If reduction=NULL
, the last one is used.
a string vector, denoting the names of batches to be plotted, or a integer vector denoting the ID numbers of batches to be plotted.
other arguments that pass to other function.
a string, specify the colname in cell metadata to be mapped to colors.
a logical value, whether put all plots in one figure.
a positive real, the baseline text size.
a 2-dimension integer vector, specify the layout of figure.
a logical value, whether use a common legend for all plots.
a string, the position of legend.
a logical value, whether add the border box.
a logical value, whether display the axis.
return a ggplot object of a list of ggplot objects.