library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.0.5
LINES <- data.frame(Startx=c(1,1,1,3,5,6),#horiz lines then vert lines
Starty=c(15,20,35,7,7,7),
Endx=c(3,5,6,3,5,6),
Endy=c(15,20,35,15,20,35))
ggplot(data=mtcars, aes(x=wt, y=mpg)) + geom_point()+
geom_segment(aes(x=Startx,y=Starty,xend=Endx,yend=Endy),data=LINES)+
coord_cartesian(ylim=c(9,36),xlim = c(1.5,6.2))#set limits tighter than line ends