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
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
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)
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
4 matches
Mail list logo