Skip to contents

An annotation canvas widget

Usage

at_canvas(
  img,
  project = NULL,
  tool = "pan",
  width = NULL,
  height = NULL,
  elementId = NULL,
  options = list(),
  call = rlang::caller_env()
)

Arguments

img

An annot_image to display.

project

Optional annot_project whose ROIs are shown initially.

tool

Initial tool: one of "pan", "rect", "polygon", "freehand", "circle", "point", "edit", "erase".

width, height

Widget dimensions.

elementId

Optional element id.

options

A list of extra options passed to the widget.

call

The calling environment, for error reporting.

Value

An htmlwidget object.

Examples

at_canvas(at_example_image("tissue"))