Create a ggplot object for objects created by qntmap package

# S3 method for qntmap
autoplot(
  object,
  zname = setdiff(names(object), c("x", "y"))[[1L]],
  zlim = NULL,
  colors = c("magma", "viridis", "gray"),
  unit = c("px", "um", "mm", "cm"),
  ...
)

# S3 method for qm_xmap
autoplot(
  object,
  zname = setdiff(names(object), c("x", "y"))[[1L]],
  zlim = NULL,
  colors = c("magma", "viridis", "gray"),
  unit = c("px", "um", "mm", "cm"),
  ...
)

# S3 method for qm_cluster
autoplot(
  object,
  zname = "cluster",
  zlim = NULL,
  colors = c("magma", "viridis", "gray"),
  unit = c("px", "um", "mm", "cm"),
  ...
)

Arguments

object

an object, whose class will determine the behaviour of autoplot

zname

Name of z-axis (fill). If unset, first column except "x" and "y" is chosen for objects with qm_xmap or qntmap classes, and "cluster" is chosen for the qm_cluster class object.

zlim

Range limit of z-coordinates. This is neglected if z is discrete.

colors

One of "magma", "viridis", or "gray". Applicable when z-coordinates is numeric.

unit

Unit of x- and y-axis ("px", "um", "mm" or "cm").

...

other arguments passed to specific methods