Geom.hline
Draw horizontal lines across the plot canvas.
Aesthetics
yintercept
: Y-axis intercept
Arguments
color
: Color of the lines.size
: Width of the lines.
Examples
plot(dataset("datasets", "iris"), x="SepalLength", y="SepalWidth",
yintercept=[2.5, 4.0], Geom.point, Geom.hline)
# Colors and widths of lines can be changed. This works separately from the
# `color` and `size` aesthetics. They may be either a scalor or a vector of
# length(yintercept).
plot(dataset("datasets", "iris"), x="SepalLength", y="SepalWidth",
yintercept=[2.5, 4.0], Geom.point,
Geom.hline(color=["orange","red"], size=[2mm,3mm]))