Skip to contents

Subtract values from numeric data in a SpatialMap object. Passes through Normalize and custom_scale_region with sweep.function = "-".

Usage

Trim(object, value, from = "Data", to = "NormalizedData", ...)

Arguments

object

A SpatialMap object

value

How much to subtract. Passed to custom_scale_region arg scale.factors.

from

Which data slot to pull data from.

to

Which data slot to assign the normalized data to.

...

Arguments passed to .smapply

Value

An updated SpatialMap object with normalized data added to the slot specified in to. Metadata recording the scale factors passed to value is added to the featureInfo.

Scroll to top