BracketDodgeParameters

Properties for parameters of geomBracketDodge().

Parameters

bracketShorten

default = 0. Symmetrically shorten the bracket by shifting both ends toward the center. Expects values between 0 and 1, where 0 corresponds to no shortening and 1 to a fully collapsed bracket.

tipLengthUnit

default = "size" ("res", "identity", "size", "px"). Unit for the lenstart and lenend aesthetics. Possible values:

  • "res": the unit equals the smallest distance between data points along the corresponding axis;

  • "identity": a unit of 1 corresponds to a difference of 1 in data space;

  • "size": a unit of 1 corresponds to the diameter of a point with size = 1;

  • "px": the unit is measured in screen pixels.

dodgeWidth

default = 0.95. Width used to compute bracket positions. Expected to match the dodge width used by other layers for proper alignment.

nGroup

Total number of dodged groups per category; used to interpret istart/iend indices. By default, this value is inferred from the data when possible, but can be set explicitly if needed.

Inheritors

Properties

Link copied to clipboard
abstract val bracketShorten: Number?
Link copied to clipboard
abstract val dodgeWidth: Number?
Link copied to clipboard
abstract val nGroup: Int?
Link copied to clipboard
abstract val tipLengthUnit: String?