R/visualization.R
EachGCHeatMap.Rd
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,
...
)
a SRTProject object or a SpatialExperiment object.
a string vector, a group of selected genes' names.
a string, specify name of clusters.
a string, the legend title.
a logical value, whether scale the gene expression for plot, default as TRUE
.
a logical value, whether display the cluster labels in plot.
a positive real, the point size in plot.
a string vector, the colors for each cluster in plot.
a positive number, the number of columns for legend.
a string, the postion of legend.
a logical value, whether display the tick text in y-axis.
a positive real, the text size for y-axis.
a logical value, whether put all plots on one figure, default as TRUE
.
other arguments pass to ggarrange
.
Returns a ggplot object or a list of ggplot objects.
None