Re: [R] Unable to Plot using headers.

2011-05-27 Thread stephen's mailinglist account
On 27 May 2011 20:25, Jonathan Daily wrote: > I would caution against using attach(), however, if you are not in an > interactive session. In functions and scripts, errors can often cause > the interpreter to exit before the detach(), leaving your data on the > search path. 99% of all attach/detac

Re: [R] Unable to Plot using headers.

2011-05-27 Thread Jonathan Daily
I would caution against using attach(), however, if you are not in an interactive session. In functions and scripts, errors can often cause the interpreter to exit before the detach(), leaving your data on the search path. 99% of all attach/detach cases can be handled by ?with and ?within. The issu

Re: [R] Unable to Plot using headers.

2011-05-27 Thread stephen's mailinglist account
>> My data is a 2 column 8000 row table (saved as .txt file) imported into >> R. >> >>>demand=read.delim("C:\\Documents and Settings\\E066582\\My >> Documents\\R\\R-2.13.0\\bin\\demand.txt") >> >> First rows with headers are as shown: >> >>> demand[1,] >> >>        Date Qty >> >> 1 12/31/2006   1 >

Re: [R] Unable to Plot using headers.

2011-05-27 Thread Sarah Goslee
Hi, You need to tell R where to find them, since they aren't R objects. (You can see all the actual objects with ls().) Two of the many options: with(demand, plot(Qty, Date)) plot(demand$Qty, demand$Date) Sarah On Fri, May 27, 2011 at 2:35 PM, Struckmeier, Nathanael wrote: > Hello List! > >

[R] Unable to Plot using headers.

2011-05-27 Thread Struckmeier, Nathanael
Hello List! Thank you for your input so far. I have successfully imported my data into R but have hit a snag in plotting. Simple plot commands are unable to find my headers when I try and plot my data on an x/y scatter. My data is a 2 column 8000 row table (saved as .txt file) imported int