I have simulated slope and intercept values for 100 linear regression lines using r
.
Now I want to plot those regression lines in the same plot.
Basically, the output should be like this,
I have simulated the data as follows :
N=100
intercept=rnorm(N,178,20)
slope=rnorm(N,0,10)
weight=seq(30,60,100)
height=seq(-100,400,100)
Now I am having a difficulty of plotting those lines in the same plot. Can anyone help me to figure that out ?
Thank you.