Getting a Line Graph connecting points on the Y-axis rather than X-acis

Hi, @harisrup , does it work by add orientation = "y" in geom_line(aes(group = Segment)) like geom_line(aes(group = Segment), orientation = "y")? I mainly refer to the following link. What's more, could you providing a relevant REPRoducible EXample (reprex) for your question?
Connect observations — geom_path • ggplot2 (tidyverse.org)