plotPolygons: Plot stored polygons

View source: R/interactivity.R

plotPolygonsR Documentation

Plot stored polygons

Description

Plot stored polygons

Usage

plotPolygons(
  gobject,
  polygon_name = "selections",
  x,
  spat_unit = "cell",
  polygons = NULL,
  ...
)

Arguments

gobject

A Giotto object with polygon coordinates

polygon_name

name of polygon selections

x

A ggplot2, spatPlot or terra::rast object

spat_unit

spatial unit

polygons

character. Vector of polygon names to plot. If NULL, all polygons are plotted

...

Additional parameters passed to ggplot2::geom_polygon() or graphics::polygon

Value

A ggplot2 image


drieslab/Giotto_site_suite documentation built on April 26, 2023, 11:51 p.m.