Applies a scale factor to adjust the magnitudes of displacement vectors

displacements.scale(d_tx, scale_factor, xyz_disp = TRUE,
  return_sp = FALSE, r_ref = NA)

Arguments

d_tx

a data frame containing the transformation vectors imported from bUnwarpJ

scale_factor

the scale factor (numeric) to adjust the displacement magnitudes

xyz_disp

(logical) TRUE if x,y and z displacements are to be scaled, and FALSE if only x,y displacements are to be scaled.

return_sp

(logical) TRUE to return a SpatialPointsDataFrame based on the CRS projection of a reference raster object

r_ref

a raster that has the CRS projection of the displacements

Value

A data frame of the scaled displacements