Re: [R] overlapping matplot

2012-11-25 Thread Rui Barradas
had a typo, par(new-TRUE), maybe that's the reason why. Rui Barradas regardseliza Date: Sun, 25 Nov 2012 15:11:33 + From: ruipbarra...@sapo.pt To: eliza_bo...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] overlapping matplot Or using matplot argument 'add'. matplot(x, ty

Re: [R] overlapping matplot

2012-11-25 Thread eliza botto
Dear Rui,thanks alot. The "add" command in matplot did work. could you please tell me why par(new=TRUE) is not working?regardseliza > Date: Sun, 25 Nov 2012 15:11:33 + > From: ruipbarra...@sapo.pt > To: eliza_bo...@hotmail.com > CC: r-help@r-project.org > Sub

Re: [R] overlapping matplot

2012-11-25 Thread Rui Barradas
Or using matplot argument 'add'. matplot(x, type = "l", ylim = range(c(x, y))) matplot(y, type = "l", add = TRUE, col = 3:6) Rui Barradas Em 25-11-2012 15:07, Rui Barradas escreveu: Hello, x <- matrix(rnorm(12), ncol = 2) y <- matrix(rnorm(24), ncol = 4) matplot(x, type = "l") par(new = TRUE)

Re: [R] overlapping matplot

2012-11-25 Thread Rui Barradas
Hello, x <- matrix(rnorm(12), ncol = 2) y <- matrix(rnorm(24), ncol = 4) matplot(x, type = "l") par(new = TRUE) matplot(y, type = "l") I see 6 lines, for 2 + 4 columns. If repeating colors are a problem, use argument 'col'. Hope this helps, Rui Barradas Em 25-11-2012 14:37, eliza botto esc