I'm working with two variables:
x=rnorm(10, 5, 1) x=c(rnorm(10, 5, 1) x=c(rnorm(10
y=rnorm(10, 5, 1) y=c(rnorm(10, 5, 1) y=c(rnorm(10
I want to plot a vertical line at the corresponding x value of the maximum y. I tried abline(v=max(y)) but that did not bring the line up. I am able to get a horizontal line for that max(y) but no vertical line for the corresponding x. I want two line on the point, essentially.