ggpLayerHorizonIAS.Rd
Adds the last circular expansion used by the IAS-algorithm of the area of an image annotation to a surface plot in order to visualize the border between screened tissue and everything beyond that is not included in the screening.
ggpLayerHorizonIAS(
object,
id,
distance = NA_integer_,
binwidth = getCCD(object),
n_bins_circle = NA_integer_,
alpha_core = 0,
fill_core = NA,
line_color = "black",
line_size = (line_size_core * 0.75),
line_size_core = 1,
inc_outline = TRUE,
direction = "outwards",
verbose = NULL,
...
)
An object of class spata2
.
Character value. The ID of the image annotation of interest.
Distance value. Specifies the distance from the border of the
image annotation to the horizon in the periphery up to which the screening
is conducted. (See details for more.) - See details of ?is_dist
for more
information about distance values.
Distance value. The width of the circular bins to which
the barcode-spots are assigned. We recommend to set it equal to the center-center
distance: binwidth = getCCD(object)
. (See details for more.) - See details of ?is_dist
for more
information about distance values.
Numeric value or vector of length 2. Specifies how many times the area is buffered with the value
denoted in binwidth
.
(See details for more.)
Character. Affects color of the main lines of the plot.
Numeric. The size with which to display encircling lines of the area expansion.
Numeric. The size with which to display the core outline of the image annotation.
Logical. If TRUE
, makes use of SPATA2
automatic tissue outline algorithm.
Logical. If set to TRUE informative messages regarding the computational progress will be printed.
(Warning messages will always be printed.)
Used to absorb deprecated arguments or functions.
ggpLayer*()
-functions return lists of ggproto
objects
that can be added to ggplots via the +
operator. In most of the cases
they are supposed to be added to plots created with the plotSurface*()
family.
object <- downloadSpataObject("313_T")
object <-
setImageAnnotation(
object = object,
img_ann = image_annotations$`313_T`$necrotic_center
)
plotSurface(object) +
ggpLayerHorizonIAS(
object = object,
id = "necrotic_center",
distance = "2.25mm",
binwidth = "112.5um"
)