GGPlotCustomTicksEx2: GGPlotCustomTicksEx

Description Usage Arguments

View source: R/GGPlot2Tools_GGPlotCustomTicksEx2.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
GGPlotCustomTicksEx2(
  plt,
  side,
  breaks,
  labels,
  trnsf = identity,
  tckSz = unit(7.5, "pt"),
  gp = gpar(),
  rot = 0,
  offset = unit(0.15, "cm"),
  just = NULL,
  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.

trnsf

Inverse trnsformation function. Used to handle secondary axes.

tckSz

Tick size (in units).

gp

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

rot

Rotation of labels, deg.

offset

Tick label offset from the axis.

just

Overrides default justification.

tickGp

gpar that controls ticks.


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