Hello,
Em 25-11-2012 15:17, eliza botto escreveu:
Dear Rui,thanks alot. The "add" command in matplot did work. could you please 
tell me why par(new=TRUE) is not working?

No, it's working for me, that's why I've sent it in my first answer. In your first post you had a typo, par(new-TRUE), maybe that's the reason why.

Rui Barradas
regardseliza

Date: Sun, 25 Nov 2012 15:11:33 +0000
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, 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)
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 escreveu:
Dear useRs,is there a way in R to overlap curve of each column of two
matrices( 19columns and 365rows) and (17cols and 365rows) against
single matrix (1 col and 365rows)?i used par(new-TRUE) and "lines"
command but both are not working.
thanks in advanceeliza
     [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to