R >= 4.1, 81 74 bytes
\(x,y=x){while(x>1)y=c(y,x<-c(x/2,3*x+1)[x%%2+1]);plot(y,c(y[-1],NA),"l")}
Note this uses RDRR because TIO doesn’t support graphical output. It also uses function
in place of \
since RDRR doesn’t support R 4.1.0 yet.
Thanks to @DominicVanEssen for saving 7 bytes!