Skip to contents

Zoom the canvas to a bounding box

Usage

at_canvas_fit(proxy, bbox = NULL, call = rlang::caller_env())

Arguments

proxy

An atcanvas_proxy.

bbox

Optional c(xmin, ymin, xmax, ymax) in level-0 pixels; fits the whole image when NULL.

call

The calling environment, for error reporting.

Value

The proxy, invisibly.