R/visualization.R
EachExprSpaHeatMap.Rd
Visualize the gene expressions on spatial coordinates for a group of genes and SRT data batches.
EachExprSpaHeatMap(
obj,
features,
batch = NULL,
quantVec = NULL,
combine = TRUE,
scale = TRUE,
...
)
# S3 method for list
EachExprSpaHeatMap(
obj,
quantVec = NULL,
title_name = TRUE,
combine = TRUE,
layout.dim = c(round(length(obj[[2]])), ncol(obj[[2]][[1]])),
no_axis = TRUE,
pt_size = 1,
base_size = 10,
border_col = "gray",
common.legend = TRUE,
axis_names = c("Coord x", "Coord y"),
no_axis_name = TRUE,
legend.position = "right",
...
)
# S3 method for SRTProject
EachExprSpaHeatMap(
obj,
features,
batch = NULL,
quantVec = NULL,
combine = TRUE,
scale = TRUE,
layout.dim = NULL,
no_axis = TRUE,
pt_size = 1,
base_size = 10,
border_col = "gray",
common.legend = TRUE,
axis_names = c("Coord x", "Coord y"),
no_axis_name = TRUE,
legend.position = "right",
...
)
a SRTProject object.
a string vector, a group of genes to be visualized.
a string or positive integer vector, the names or ID of batches to be plotted
a real or real vector between 0 and 1, set the midlle scale of continous color schema.
a logical value, whehter put all plots on one figure, default as TRUE.
a logical value, whether scale the gene expression for plot, default as TRUE
.
other arguments pass to ggarrange
.
a 2-diemensional vector, specify the layout (numbers of rows and columns) of figure.
a logical value, whether display the axis in plot.
a positive real, the point size in plot.
a positive real, the baseline text size in plot.
a string, the color of border in plot.
a logcial value, whether use a common legend in figure.
a 2-dimensional string vector, the axis names in plot.
a logical value, whether display the axis name in plot.
a string, the position of legend.
Returns a ggplot object or a list of ggplot objects.
None.