I'm plotting some functions in R. Some of them aren't continuous and I get a vertical line between the diferent curve components. I really need to get this vertical line out (It makes the function look like a no-function and I don't want that).
So, how can I do that? Right now, I'm using two vectors x
andy
and doing plot(x,y,type = "l")
so R doesn't understand where there is a discontinuity. But I didn't find a better way.