d_axis: Abstract axis

Description Usage Arguments Details

Description

Create an axis from inputs 'n'umber, 'min'imum and 'max'imum, and optionally a 'name'. The name is intended to be present and unique for downstream use, but in isolation are optional.

Usage

1
2
3
4
d_axis(n, min, max, name)

## Default S3 method:
d_axis(n, min = 0, max = n, name = NA_character_)

Arguments

n

number of discrete steps in the axis

min

the minimum location in the axis (defaults to zero)

max

the maximum location in the axis (defaults to 'n')

name

a name to apply to the axis

Details

Continuous axes are supported, but only for some kind of completeness. The intention is for straightforward 1-D discretization and the ability to be continuous is probably better supported elsewhere (i.e. the scales package).


hypertidy/discrete documentation built on May 9, 2019, 2:27 p.m.