.getAxisCoords {CrispRVariants} | R Documentation

## .getAxisCoords

### Description

Manually specify x-tick locations and labels, as sometimes ggplot defaults are too dense. Used internally by CrispRVariants for creating alignment plot with plotAlignments.

### Usage

    .getAxisCoords(locations, labels = NULL, loc.boundaries = NULL,
      lab.boundaries = c(-1, 1), label.at = 5, min.tick.sep = 1)

### Arguments

`locations` | character(n) Actual x coordinates, or the desired range of the x coordinates. If labels are provided, all tick locations must be in locations and have a matching label.
`labels` | character(n) labels for the x axis ticks. Should be the same length as locations if provided. Note that if not all tick locations are included in locations, it must be possible to extrapolate labels from locations (Default: NULL)
`loc.boundaries` | numeric(i) Locations that must be included. (Default: NULL)
`lab.boundaries` | numeric(j) Labels that must be included. (Default: c(-1,1), for showing the cut sites). Boundaries must be in labels and have a matching tick location.
`label.at` | numeric(1) Add ticks when label modulo label.at is zero (Default = 5)
`min.tick.sep` | numeric(1) Minimum distance between ticks, excluding boundary ticks. (Default: 1)

### Value

A list containing vectors named tick_locs and tick_labs

### Author(s)

Helen Lindsay

[Package CrispRVariants version 1.15.0 Index]