[R] How to concatenate a variable and assign value

Geoff Wright geoffwright at sympatico.ca
Sat Aug 10 16:27:04 CEST 2002

for(i in c(1,50,100,250)){

	Then I want to create a variable called:
	graph++i <- histogram...

Any ideas?

With hist it is easy to create multiple graphs on a page but with the trellis 
histogram, I am finding it a bit more awkward.  It seems that I have to use
print(graph1, split=c(1,1,1,2), more=T) to achieve the desired result.  Does 
anyone have code they are willing to share which makes this a bit more 

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list