VizSpatial.Rd
The 2D spatial coordinates (x and y) should be stored as two columns in colData.
VizSpatial(
obj,
x_coord = "x",
y_coord = "y",
ptSize = 2,
ptShape = 16,
groupBy = NULL,
feature = NULL,
assay2use = NULL,
reducedDim = NULL,
reducedDim2use = "PhiSpace",
censor = FALSE,
quant = 0.5,
legend.position = "right",
legend.symb.size = NULL,
legend.title = NULL,
fsize = 14,
reOrder = F,
...
)
Input object; either SingleCellExperiemnt
or SpatialExperiment
. If SingleCellExperiemnt
, then colData(obj)
has to contain columns named by x_coord
and y_coord
below.
x coordinate name of a column of colData (if type(ojb) == SingleCellExperiemnt
).
y coordinate name of a column of colData (if type(ojb) == SingleCellExperiemnt
).
Size of point, representing spatial cell like objects (segmented cells, spots etc).
Shape of point.
Name of a metadata column to colour points by.
Name of a feature (eg gene) to colour points by.
Which assay to use when feature is specified.
Name of reducedDim column to colour points by.
Name of reducedDim layer to use when reducedDim is specified.
Logical. Whether to set smaller colour values to zero. Default is FALSE
. (Recommend to set to TRUE
when visualise PhiSpace scores,)
A value between 0 and 1. Colour values below quant
will be set to zero if censor=TRUE
.
Position of legened, one of "right", "bottome", "left" and "top".
Legend symbol size (for discrete legend).
Alternative legend name to replace the original.
Base font size of figure.
Logical. Whether to reorder points according to their values (ascending) or not. Set to be TRUE
to avoid overplotting.
Other arguments to pass to basicPlotFormat
.
A ggplot2 object.