uninfinite_coord: Replace infinite values in TikZ coordinates

View source: R/ggtikzUninfinite.R

uninfinite_coordR Documentation

Replace infinite values in TikZ coordinates

Description

Infinite values are replaced with the minimum or maximum value of the padding in the x or y direction, respectively. Additionally, the adjusted coordinate is padded so that it lies just next to the panel borders and axis lines without overlap.

Usage

uninfinite_coord(coord, xrange, yrange)

uninfinite_tikz(tikz_code, xrange, yrange)

Arguments

coord

TikZ coordinate

xrange

Numeric vector of length 2, minimum and maximum values in the x direction

yrange

Numeric vector of length 2, minimum and maximum values in the y direction

tikz_code

The TikZ code to replace Infinite values in.

Value

The adjusted TikZ coordinate with padding, as a string.


osthomas/ggtikz documentation built on June 16, 2024, 6:55 a.m.