Description Usage Arguments Value Author(s)
Manually specify x-tick locations and labels, as sometimes ggplot defaults are too dense. Used internally by CrispRVariants for creating alignment plot with plotAlignments.
1 2 | .getAxisCoords(locations, labels = NULL, loc.boundaries = NULL,
lab.boundaries = c(-1, 1), label.at = 5, min.tick.sep = 1)
|
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) |
A list containing vectors named tick_locs and tick_labs
Helen Lindsay
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.