Skip to contents

Crop a box out of a shape

Usage

crop_box(x, xoffset = 0.45, yoffset = 0.45, xscale = 0.1, yscale = 0.1)

Arguments

x

sf object

xoffset

x-offset as fraction of original width (0..1)

yoffset

y-offset as fraction of original height (0..1)

xscale

new width as fraction of original width (0..1)

yscale

new height as fraction of original height (0..1)