Transforms an object's y values.

transform_y(x, f, y_unit, y_lab)

Arguments

x

Object to transform.

f

Function to apply (vectorised).

y_unit

(Character scalar) New units for the y axis.

y_lab

(Character scalar) New label for the y axis.