spiral_yaxis: Draw y-axis

View source: R/graphics.R

spiral_yaxisR Documentation

Draw y-axis

Description

Draw y-axis

Usage

spiral_yaxis(
  side = c("both", "start", "end"),
  at = NULL,
  labels = TRUE,
  ticks_length = unit(2, "bigpts"),
  ticks_gp = gpar(),
  labels_gp = gpar(fontsize = 6),
  track_index = current_track_index()
)

Arguments

side

On which side of the spiral the y-axis is drawn? "start" means the inside of the spiral and "end" means the outside of the spiral. Note if reverse was set to TRUE in spiral_initialize(), then "start" corresponds to the outside of the spiral.

at

Break points.

labels

Corresponding labels for the break points.

ticks_length

Length of the tick. Value should be a grid::unit() object.

ticks_gp

Graphical parameters for ticks.

labels_gp

Graphical parameters for labels.

track_index

Index of the track.

Value

No value is returned.

Examples

spiral_initialize(); spiral_track(height = 0.8)
spiral_yaxis("start")
spiral_yaxis("end", at = c(0, 0.25, 0.5, 0.75, 1), labels = letters[1:5])

spiralize documentation built on June 22, 2024, 10:45 a.m.