lets take this example:
test=c(1,5,NA,5,4,1,NA,3,3,5,4,2) plot(test,type=\"l\")
This will plot test but will not connect the
One options is:
plot(na.omit(test), type = "l")
If you want to retain the x-axis going from 1 - length(test) then:
length(test)
plot(na.omit(cbind(x = seq_along(test), y = test)), type = "l")