Re: [R] Line over Boxplot

2012-09-20 Thread Peter Langfelder
Enclose the file name tmax.final.text in quotes. Otherwise R is looking for a variable named tmax.final.text, not the file name named "tmax.final.text". HTH Peter On Thu, Sep 20, 2012 at 1:02 PM, gfishel wrote: > Thanks for your help! Unfortunately, I am now getting this: > >> pdf(file="boxplot

Re: [R] Line over Boxplot

2012-09-20 Thread gfishel
Thanks for your help! Unfortunately, I am now getting this: > pdf(file="boxplot_tmax_2012091912.pdf", height=10, width=12) > > soton.df = read.table ( tmax.final.text, header=TRUE ) Error in read.table(tmax.final.text, header = TRUE) : object 'tmax.final.text' not found Execution halted The

Re: [R] Line over Boxplot

2012-09-20 Thread Greg Snow
I expect that the coordinate system being set up and used by boxplot is different from what you are expecting. See the ?boxplot and ?bxp help pages for details. You may be able to have the boxplots drawn where you expect by using the "at" argument (you may want to specify "xlim" as well). On Thu

Re: [R] Line over Boxplot

2012-09-20 Thread Rui Barradas
Hello, Works with me after correcting your lines() instruction. Your code doesn't say what columns to use as coordinates, just where to look for them. Also, (1) allways explicitly close the device using dev.off(). (2) The grid lines were over the boxes. A way to avoid this is to plot the boxes

[R] Line over Boxplot

2012-09-20 Thread gfishel
Very much a rookie at R, and have only recently started using it again so pardon the simple question. I am trying to produce a box plot from one data set and then overlay a line plot from another data set. The box plot data set is made up of 20 sets of 30 data points, or 600 total data points. The