Skip to content

arrow

arrow(
    angle: Number | None = None,
    length: Number | None = None,
    ends: Literal[first, last, both] | None = None,
    type: str | None = None,
) -> FeatureSpec

Describe the arrow heads of a line (geom_segment, geom_path).

Parameters:

  • angle (float, default: None ) –

    Angle of the arrow head in degrees (default 30).

  • length (float, default: None ) –

    Length of the arrow head in pixels (default 10).

  • ends ((last, first, both), default: "last" ) –

    Which ends of the line get a head (default "last").

  • type ((open, closed), default: "open" ) –

    Whether the head is a closed triangle (default "open").

Returns:

  • FeatureSpec –

    The arrow specification.