GGPlotCustomTicks: GGPlotCustomTicks

Description Usage Arguments

View source: R/GGPlot2Tools_GGPlotCustomTicks.R

Description

Creates custom ticks with labels. Requires a finished ggproto object. Can be piped with

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
GGPlotCustomTicks(
  plt,
  side,
  breaks,
  labels,
  tckSz,
  trnsf = identity,
  gp = gpar(),
  rot = 0,
  deltaH = 0,
  deltaV = 0,
  tickGp = gpar()
)

Arguments

plt

Target plot.

side

Indicates axis. Can be either 1,2,3,4, "b", "l", "t", "r", or strings containing "bot", "lef", "top", "rig" substring.

breaks

Breaks in the axis scale.

labels

Respective text labels.

tckSz

Relative size of the tick.

trnsf

Trnsformation function. Should match scale_* of the target axis. E.g. for scale_x_log10 trnsf should be log10.

gp

A gpar set of parameters passed to the text methods. Affects rendering of the labels.

rot

Rotation of labels, deg.

deltaH

Additional horizontal text shift. If affected by rot.

deltaV

Additional vertical text shift. Is affected by rot.

tickGp

gpar that controls ticks.


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