Michal - 1 year ago 65

R Question

Answer Source

Think this should work. Not sure if it's the best way though

```
plot(x = 0,y = 0,xlab = "X",ylab = "Y", xlim = c(-10,10), ylim = c(-10,10))
c <- c(1:10) #Store the different values of your constant in this vector
for(i in 1:10){
abline(coef = c(0,c[i]))
}
```

If you want different limits on your X and Y axis change the values of `xlim`

and `ylim`

.