plotInteractivePolygons: Select image regions by plotting interactive polygons

View source: R/interactivity.R

plotInteractivePolygonsR Documentation

Select image regions by plotting interactive polygons

Description

Plot interactive polygons on an image and retrieve the polygons coordinates.

Usage

plotInteractivePolygons(x, width = "auto", height = "auto", ...)

Arguments

x

A 'ggplot' or 'rast' plot object to draw polygons on

width, height

An integer, defining the width/height in pixels.

...

Graphical parameters passed on to 'polygon' or 'geom_point'.

Value

A 'data.table' containing x,y coordinates from the plotted polygons.


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