ax: Draw Pretty Axes (legacy base graphics)

axR Documentation

Draw Pretty Axes (legacy base graphics)

Description

Draw axes for biexp, log or linear transformations.

Usage

ax(
  axis = 1,
  type = c("biexp", "asinh", "log", "linear", "none"),
  max_channel = 262143,
  ticksize = 2,
  ...
)

Arguments

axis

Which axis to draw (1 = x, 2 = y)

type

Type of transformation (one of "biexp", "log", "linear")

max_channel

The maximum value that the flow cytometer can generate. For most BD instruments which have 18-bit A-D converters, that number is (2 ^ 8 - 1), or 262143

ticksize

How big the tick marks should be (in relative coordinates)

...

Additional graphical parameters to pass to axis

Details

This function is used by pplot, and only works with methods in the standard R graphics package. You can use it yourself for figures you generate that use one of these transformations. To do so, first generate a plot, and suppress the appropriate axis, e.g. ..., xaxt = 'n', ....

Examples

# create an empty plot with suitable ranges
plot (0, 0, pch = '', xlim = c(0, 5.4), ylim = c(0, 5.4),
      xaxt = 'n', yaxt = 'n',
      xlab = 'biexponential', ylab = 'logarithmic')
# add the axes
ax(axis = 1, type = 'biexp')
ax(axis = 2, type = 'log')

rogerswt/wadeTools documentation built on Feb. 16, 2023, 7:47 a.m.