somfunc<- function (file) {

aa_som<-scale(file)


final.som<-som(data=aa_som, rlen=10000, grid=somgrid(5,4, "hexagonal"))

pdf(file="/home/cdu/changbin/file.pdf") #output graphic file.

plot(final.som, main="Unsupervised SOM")

dev.off()

}

I have many different files, if I want  output pdf file with the same name
as for each dataset I feed to the function somfunc.

HOw should I DO?

THANKS!

-- 
Sincerely,
Changbin
--

Changbin Du
DOE Joint Genome Institute
Bldg 400 Rm 457
2800 Mitchell Dr
Walnut Creet, CA 94598
Phone: 925-927-2856

	[[alternative HTML version deleted]]

