Re: [R] Concatenate xyplots

2008-01-30 Thread eite2335
OK - here is an example: ## Create example data data = matrix(1:8, nrow=4, ncol=2) ## Name columns x and y colnames(data) = c(x, y) data = data.frame(data) ## Create 5 graphs with the xyplot command graph1= xyplot(y~x, data = data) graph2 = xyplot(y~x, data = data) graph3 = xyplot(y~x,

Re: [R] Concatenate xyplots

2008-01-30 Thread Gabor Grothendieck
xyplot.zoo uses xyplot and will displays graphs of times series without space: library(zoo) z - with(data, zoo(y, x)) xyplot(cbind(z, z, z, z, z)) On Jan 30, 2008 11:17 AM, eite2335 [EMAIL PROTECTED] wrote: OK - here is an example: ## Create example data data = matrix(1:8, nrow=4, ncol=2)

Re: [R] Concatenate xyplots

2008-01-30 Thread Deepayan Sarkar
On 1/30/08, eite2335 [EMAIL PROTECTED] wrote: OK - here is an example: ## Create example data data = matrix(1:8, nrow=4, ncol=2) ## Name columns x and y colnames(data) = c(x, y) data = data.frame(data) ## Create 5 graphs with the xyplot command graph1= xyplot(y~x, data = data)

Re: [R] Concatenate xyplots

2008-01-30 Thread Attiglah, Mama
Hi room, Is there any R package that solves a non linear objective pb, with linear equality constraint? A simple example a =c (2, 5, 6, 7, 2) b = c (7, 1, 4, 5, 6) a and b are vectors of length 5 minimise f(x, a) = sum( (x-a)^2) such that sum( x*b) = 50. where x is the control

Re: [R] Concatenate xyplots

2008-01-30 Thread eite2335
OK, this was a silly example. This one should be not as silly: ## Created example dataset data1 = matrix(1:12, nrow=4, ncol=3) data1 = data.frame(matrix(data1, 4, 3, byrow = T)) colnames(data1) = c(y1, y2,x) data2 = data.frame(c(1,1,2,2)) colnames(data2) =c(z) data = cbind(data1,data2)

Re: [R] Concatenate xyplots

2008-01-30 Thread Deepayan Sarkar
On 1/30/08, eite2335 [EMAIL PROTECTED] wrote: OK, this was a silly example. This one should be not as silly: ## Created example dataset data1 = matrix(1:12, nrow=4, ncol=3) data1 = data.frame(matrix(data1, 4, 3, byrow = T)) colnames(data1) = c(y1, y2,x) data2 = data.frame(c(1,1,2,2))

Re: [R] Concatenate xyplots

2008-01-30 Thread Deepayan Sarkar
On 1/29/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear R-community, I created 5 different xyplots and graphed all of them with the print command on one page (e.g. print(graph1, split=c(1,1,1,5), more = T) ... print(graph5, split=c(1,5,1,5), more =T) Using the above commands

[R] Concatenate xyplots

2008-01-29 Thread jeitel
Dear R-community, I created 5 different xyplots and graphed all of them with the print command on one page (e.g. print(graph1, split=c(1,1,1,5), more = T) ... print(graph5, split=c(1,5,1,5), more =T) Using the above commands separates each graph by a white space. However, since the