plotSurfaceAverage.Rd
Displays the spatial dimension of the sample and colors the
surface according to the expression of averaged gene expression values.
For each element in the list specified in argument color_by
a
surface plot is generated colored by the gene's average expression score.
plotSurfaceAverage(
object,
color_by,
pt_alpha = NULL,
pt_clrsp = NULL,
pt_size = NULL,
smooth = FALSE,
smooth_span = NULL,
use_scattermore = FALSE,
sctm_pixels = c(1024, 1024),
sctm_interpolate = FALSE,
display_image = NULL,
bcsp_rm = NULL,
na_rm = FALSE,
...
)
An object of class spata2
.
A character vector of gene names or a named list in which each element is a vector of gene names.
Numeric value. Specifies the degree of transparency of all points.
The color spectrum to be used if the specified variable displayed by
color is continuous. Run validColorSpectra()
to see valid input.
Numeric value. Specifies the size of all points.
Logical. If TRUE, a loess fit is used to smooth the values.
Numeric value. Controls the degree of smoothing.
Given to argument span
of stats::loess()
.
Logical value. If TRUE
, data points are plotted with
scattermore::geom_scattermore()
which allows quick plotting of several
thousand data points. If the number of data points plotted is bigger than
10.000 it is used anyway.
Given to the corresponding arguments
of scattermore::geom_scattermore()
. Note: With increasing sctm_pixels
the point size must be adjusted with the argument pt_size
.
Logical. If set to TRUE the histology image of the specified sample is displayed underneath the plot.
Character vector or NULL.
If character, specifies barcode-spots that
are removed before analysis or plotting.
Used to absorb deprecated arguments or functions.