uninfinite_coord {ggtikz} | R 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.
[Package ggtikz version 0.1.3 Index]