[R] multiple plots on same x axis
Petr Pikal
petr.pikal at precheza.cz
Thu Sep 29 11:58:09 CEST 2005
Hi
You can use e.g. plot - points construction
plot(Day, gene1)
points(Day, gene2, col=2)
see
?points
?lines
You also need to set appropriate y range by ylim argument to first
plot. And if you used search facility in CRAN and asked it
multiple plots on same x axis
you would have got many other posibilities for your question.
HTH
Petr
On 27 Sep 2005 at 15:34, IAIN GALLAGHER wrote:
Date sent: Tue, 27 Sep 2005 15:34:53 +0100 (BST)
From: IAIN GALLAGHER <iaingallagher at btopenworld.com>
To: r-help at stat.math.ethz.ch
Subject: [R] multiple plots on same x axis
> Hi.
>
> I have two vectors of gene expression for each of
> several days. I want to plot both vectors on the same
> plot for a visual representation of up versus down
> regulation. I've tried using add=T but that doesn't
> work.
>
> eg
>
> >plot(Day, gene1)
> >plot(Day, gene2, add=T)
>
> Any help would be appreciated.
>
> Iain
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
Petr Pikal
petr.pikal at precheza.cz
More information about the R-help
mailing list