Create a ggplot object for objects created by qntmap package
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29  | ## S3 method for class '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 class '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 class 'qm_cluster'
autoplot(
  object,
  zname = "cluster",
  zlim = NULL,
  colors = c("magma", "viridis", "gray"),
  unit = c("px", "um", "mm", "cm"),
  ...
)
 | 
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
  | 
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  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.