I have some latitude and longitudes that I am trying to plot on an image with the lines() command like this:
image(seq(-98, -93, 0.1), seq(28.5, 32.5, 0.1), z, xlab= "Longitude", ylab= "Latitude", main= "Temperature") for (i in 2:length(subset(geo, Feature=="Coast")[,1])) { lines(x=geo[(i-1),2]:geo[i,2], y=geo[(i-1),1]:geo[i,1], col="blue", lwd=3) } There aren't any errors, but nothing shows up on the plot. I tried substituting "points" for "lines" and all the points came up exactly where they need to be, but how can I make it work with "lines"? [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.