Re: [R] pdf() and histogram() in function call

2008-04-23 Thread Greg Snow
t; To: r-help@r-project.org > Subject: [R] pdf() and histogram() in function call > > >Here is a function I wrote. It runs no problem, but > generate empty pdf >files. > >I can't find what is the problem. > > >create.pdf<- function(x,

[R] pdf() and histogram() in function call

2008-04-23 Thread qian z
Here is a function I wrote. It runs no problem, but generate empty pdf files. I can't find what is the problem. create.pdf<- function(x, dir) { dir.create(dir, showWarnings = FALSE) plist<- c("a", "b" , "c", "d") for(j in plist) { filedir<- paste(dir,