autoplot-qntmap: Create a ggplot object for objects created by qntmap package

Description Usage Arguments

Description

Create a ggplot object for objects created by qntmap package

Usage

 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"),
  ...
)

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


atusy/qntmap documentation built on April 11, 2021, 4:45 p.m.