GenerateBreaks: GenerateBreaks

Description Usage Arguments Value

View source: R/GGPlot2Tools_GenerateBreaks.R

Description

Generates large and small breaks within given range.

Usage

1
2
3
4
5
6
7
8
GenerateBreaks(
  range,
  largeStep,
  smallStep,
  ticks,
  op = `*`,
  shrinkFactor = -0.05
)

Arguments

range

Range of breaks (typically a scale of an axis).

largeStep

Step for large breaks (the ones with labels).

smallStep

If specified, used as step for small breaks.

ticks

If smallStep is not specified, then ticks are used to create small breaks.

op

Used in combination with ticks as: per each large break produces op(ticks, break) small breaks and then limits them to range

shrinkFactor

Controls the min and max limits within which large labels are calculated. Can be useful to prevent large labels being plotted outside of plot region, overlapping with e.g. stacked plots.

Value

A list containing either $Large, $Small collections of breaks, or both.


Ilia-Kosenkov/RLibs documentation built on Jan. 26, 2020, 2:21 p.m.