Briefly, it adds the orientation argument to geom_step().
If orientation = "y", stairsteps are constructed vertically.
In the example below, recall that the steps go from top to bottom, so direction = "hv" first does the horizontal step, then the vertical one (and vice versa for direciton = "vh").
This PR aims to fix #5936.
Briefly, it adds the
orientation
argument togeom_step()
. Iforientation = "y"
, stairsteps are constructed vertically.In the example below, recall that the steps go from top to bottom, so
direction = "hv"
first does the horizontal step, then the vertical one (and vice versa fordireciton = "vh"
).Created on 2024-06-07 with reprex v2.1.0