spiral_axis: Draw axis along the spiral

Description Usage Arguments Value Examples

View source: R/graphics.R

Description

Draw axis along the spiral

Usage

1
2
3
4
5
spiral_axis(h = c("top", "bottom"), at = NULL, major_at = at,
    labels = TRUE, curved_labels = FALSE, minor_ticks = 4,
    major_ticks_length = unit(4, "bigpts"), minor_ticks_length = unit(2, "bigpts"),
    ticks_gp = gpar(), labels_gp = gpar(fontsize = 6),
    track_index = current_track_index())

Arguments

h

Position of the axis. The value can be a character of "top" or "bottom".

at

Breaks points on axis.

major_at

Breaks points on axis. It is the same as at.

labels

The corresponding labels for the break points.

curved_labels

Whether are the labels are curved?

minor_ticks

Number of minor ticks.

major_ticks_length

Length of the major ticks. The value should be a unit object.

minor_ticks_length

Length of the minor ticks. The value should be a unit object.

ticks_gp

Graphics parameters for the ticks.

labels_gp

Graphics parameters for the labels.

track_index

Index of the track.

Value

No value is returned.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
spiral_initialize(); spiral_track()
spiral_axis()

# if the spiral is intepolated by the curve length
spiral_initialize(scale_by = "curve_length"); spiral_track()
spiral_axis()

spiral_initialize(xlim = c(0, 360*4), start = 360, end = 360*5); spiral_track()
spiral_axis(major_at = seq(0, 360*4, by = 30))

spiral_initialize(xlim = c(0, 12*4), start = 360, end = 360*5); spiral_track()
spiral_axis(major_at = seq(0, 12*4, by = 1), labels = c("", rep(month.name, 4)))

spiralize documentation built on Jan. 16, 2022, 1:06 a.m.