Re: [R] R to automate scatter plots

2011-11-10 Thread R. Michael Weylandt
I think you are off in the order of calls: you need to open the pdf and then do all the plots so that they get pushed to the pdf. The blank plot call won't do anything particularly helpful. If you use pdf() after most of the plot commands they go to your default device which is usually printing to

Re: [R] R to automate scatter plots

2011-11-10 Thread R. Michael Weylandt
It's usually encouraged to reply to the list as well for threading/archive reasons. (And because occasionally your first respondent will say something wrong and require correction -- I was called out just this morning...oops) Yes, you seem to be using it right to add a title to the plot but you ha

Re: [R] R to automate scatter plots

2011-11-09 Thread R. Michael Weylandt
Sorry for the rambling answer: On Wed, Nov 9, 2011 at 8:28 PM, R. Michael Weylandt wrote: > It sounds like something is going wrong in your data read -- the > warnings indicate that R probably isn't data** meant to say: getting numerical data. > to the plotting commands. > My totally off the w

Re: [R] R to automate scatter plots

2011-11-09 Thread R. Michael Weylandt
It sounds like something is going wrong in your data read -- the warnings indicate that R probably isn't data to the plotting commands. My totally off the wall guess is that if your data is coming by way of excel, the commas are leading to your data becoming characters and hence not plotting nicely

Re: [R] R to automate scatter plots

2011-11-09 Thread David Winsemius
On Nov 9, 2011, at 4:22 PM, Cynthia Lee Page wrote: Hi R people! I have a directory of .csv files I would like to make into objects then scatter plots. I have been having varying degrees of progress. I was able make an object of all files, loop through it, and make a pdf of the last file

[R] R to automate scatter plots

2011-11-09 Thread Cynthia Lee Page
Hi R people! I have a directory of .csv files I would like to make into objects then scatter plots. I have been having varying degrees of progress. I was able make an object of all files, loop through it, and make a pdf of the last file I looped through. I kept renaming the pdf so instead o