addPointsBase.Rd
Adds a point layer to a base surface plot.
addPointsBase(
object,
color_by,
alpha_by = NULL,
pt_alpha = 0.75,
pt_size = 1,
pt_clrp = "default",
pt_clrsp = "inferno",
clrp_adjust = NULL,
smooth = NULL,
smooth_span = NULL,
xrange = NULL,
yrange = NULL
)
An object of class spata2
.
The variable to be displayed by color:
Gene set as a single character value. Must be in getGeneSets()
Genes as a character vector. If more than one gene is specified the average
expression of those genes will be calculated and displayed. Must be in getGenes()
Feature as a single character value. Must be in getFeaturenNames()
Numeric value. Specifies the degree of transparency of all points.
Numeric value. Specifies the size of all points.
The color palette to be used if the specified variable displayed by
color is categorical/discrete. Run validColorPalettes()
to see valid input.
The color spectrum to be used if the specified variable displayed by
color is continuous. Run validColorSpectra()
to see valid input.
Named character vector or NULL. If character, it adjusts the color palette that is used to represent the groups. Names of the input vector must refer to the group and the respective named element denotes the color with which to represent the group.
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()
.
Vector of length two or NULL
. If not NULL
,
specifies the x- and y-range to which the output image is cropped. E.g.
xrange = c(200, 500)
results in the image being cropped from
x-coordinate 200px up to x-coordinate 500px. If NULL
, the original image
ranges are taken.
This argument works within the SPATA2
distance framework.
If values are specified in European units of length the input is
immediately converted to pixel units. See info section Distance measures
for more information.
Plots right into the plotting window.