get_track_data: Meta-data of a track

View source: R/track.R

get_track_dataR Documentation

Meta-data of a track

Description

Meta-data of a track

Usage

get_track_data(field, track_index = current_track_index())

Arguments

field

Name of the field, see the Details section.

track_index

The index of the track.

Details

There are following fields that can be retrieved for a given track:

  • ymin: Minimal value on the y-axis.

  • ymax: Maximal value on the y-axis.

  • ycenter: (ymin + ymax)/2.

  • ylim: c(ylim, ymax).

  • yrange: ymax - ymin.

  • height: Height of the track, measured as the fraction of the distance between two neighbouring spiral loops.

It is more suggested to directly use TRACK_META to retrieve meta data for the current track.

Value

A numeric vector (of length one or two) for the corresponding field.


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