Visualize the specified item on the two-dimensional embeddings such as tSNE, UMAP and so on.
EmbedPlot(obj, item = "cluster", plotEmbeddings = "tSNE", ...)
# S3 method for SRTProject
EmbedPlot(
obj,
item = "cluster",
plotEmbeddings = NULL,
axis_names = NULL,
cols = NULL,
no_guides = FALSE,
no_axis_name = FALSE,
pt_size = 1,
point_alpha = 1,
nrow.legend = NULL,
base_size = 10,
border_col = "gray",
legend.position = "bottom",
no_axis = FALSE,
do_density = FALSE
)
# S3 method for SpatialExperiment
EmbedPlot(
spe,
plotEmbeddings = NULL,
colour_by = NULL,
base_size = 15,
legend.position = "right",
add_border_box = FALSE,
...
)
a SRTProject object or SpatialExperiment object.
a string, the item used to mapped as colors.
a string, the name of plotembeddings, sucha as tSNE and UMAP.
a 2-dimensional string vector, the names of axis.
a string vector, the selected colors.
a logical value, whether add guides.
a logical value, whether display the axis names.
a positive real, the point size in plot.
a positive real between 0 and 1, the point transparency in plot.
a positive number, the number of columns for legend.
a positive real, the baseline text size in plot.
a string, the color of border in plot.
a string, the positive of legend.
a logical value, whether display the axis.
a logical value, whether plot the density plot.
a logical value, whether add border box in plot.
returns a ggplot object.