addTissueOutlineBase: Add polygons to a base plot

addTissueOutlineBaseR Documentation

Add polygons to a base plot

Description

Adds polygons to a base plot.

Usage

addTissueOutlineBase(object, ...)

## S4 method for signature 'HistoImage'
addTissueOutlineBase(
  object,
  by_section = FALSE,
  persp = "coords",
  line_alpha = 0.9,
  line_color = "black",
  line_size = 1,
  line_type = "solid",
  scale_fct = 1,
  init = list(),
  rect = FALSE,
  ...
)

Arguments

scale_fct

A factor with which the vertice positions are scaled.

x, y

Numeric vectors representing x- and y-coordinates of the vertices of the polygon.

poly

Data.frame of at least two variables named x and y representing the coordinates of the vertices of the polygon. If variable section exists multiple polygons are plotted based on the number of different groups in this variable. Overwrites x and y.

color

Color of the lines.

size

Width of the lines.

Value

Output of graphics::polygon() is directly plotted.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.