Skip to contents

Subset a Region object by coordinates

Usage

subRegion(region, i = NULL, j = NULL, inv = TRUE)

Arguments

region

A Region object

i

Specifies subsetting in the X axis.

  • If i is a scalar, coordinates less than or equal to i are included

  • If i is a 2-length vector, the elements will be treated as min and max of the subset window, respectively

  • If i is a range, any coordinates within the range will be included

j

Same as i

inv

Whether to invert the y axis -- commonly done for microscopy image data.

Value

Region object

Scroll to top