Steve Murray <smurray...@hotmail.com> wrote > >I have a data frame of the nature:
>I am hoping to plot columns 2 and 3 against Latitude. I understand that you >have to do this by plotting one column at a time, so I have been starting by >attempting the following, but receiving errors: > > >I'm obviously doing something fundamentally wrong (!). I'd be grateful for any >suggestions as to how I should go about this. > I think what you are doing wrong is misinterpreting what people mean when they say "line". They don't mean line of data, they mean line on the plot. Does this get you started? lat <- seq(-55:-50) simrun <- c(574.09, 247.23, 103.41, 86.99, 45.22, 55.93) obsrun <- c(491.95, 319.66, 237.82, 179.54, 105.30, 136.61) plot(simrun~lat,type = 'l') lines(obsrun~lat) Peter Peter L. Flom, PhD Statistical Consultant www DOT peterflomconsulting DOT com ______________________________________________ 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.