hlines
Draws a set of horizontal lines into the diagram.
By default, the lines are indefinite and span the entire width of the
diagram, independent of the limits, however, through min and max,
beginning and end of the line can be fixed to an coordinate,
respectively.
#lq.diagram(
xlim: (0, 7),
lq.hlines(1, 1.1, stroke: teal, label: "Indefinite"),
lq.hlines(2, stroke: blue, min: 2, label: "Fixed start"),
lq.hlines(3, stroke: purple, max: 2, label: "Fixed end"),
lq.hlines(4, stroke: red, min: 1, max: 3, label: "Fixed"),
)
Parameters
..y : int | float
The coordinate(s) of one or more horizontal lines to draw.
min : auto | int | float default: auto
The beginning of the line as an coordinate. If set to auto, the line will
always start at the left edge of the diagram.
max : auto | int | float default: auto
The end of the line as an coordinate. If set to auto, the line will
always end at the right edge of the diagram.
stroke : stroke default: black
How to stroke the lines.
label : content default: none
The legend label for this plot. See plot.label.
z-index : int | float default: 2
Determines the position of this plot in the order of rendered diagram
objects. See plot.z-index.