getGridVal: Gets grid value
Description
Returns the raw value in units if the provided is of type unit else
it returns the default unit.
Usage
getGridVal(x, default.units, axisTo = "x")
Arguments
- x
Value
- default.units
The unit type
- axisTo
The axis that is used, useful for "npc" where
there is a big difference in height and width