plot-api / jetbrains.letsPlot / coord_fixed

coord_fixed

fun coord_fixed(ratio: Double? = null, xlim: Pair<Number?, Number?>? = null, ylim: Pair<Number?, Number?>? = null): OptionsMap

A fixed scale coordinate system forces a specified ratio between the physical representation of data units on the axes.

Parameters

xlim - A pair of numbers

ylim - A pair of numbers Limits for the x and y axes.

ratio - double The ratio represents the number of units on the y-axis equivalent to one unit on the x-axis. ratio = 1, ensures that one unit on the x-axis is the same length as one unit on the y-axis. Ratios higher than one make units on the y axis longer than units on the x-axis, and vice versa.