These functions are methods for the generic
relevel.
If x is a pixel image (object of class "im") with
factor values, or a point pattern (object of class "ppp",
"ppx", "lpp" or "pp3")
with factor-valued marks, the levels of the factor are changed so
that the level specified by ref comes first.