[R] Second Y axis

Timur Elzhov Timur.Elzhov at jinr.ru
Sat Jul 5 18:13:52 CEST 2003


On Wed, Jul 02, 2003 at 04:05:13PM -0400, Depinay, Jean-marc (NIH/FIC) wrote:

> I would like to add a second graph on the right y axis. Is it a way to do so
> with R?
plot(...)        # you normally plot 1st graph
par(new = TRUE)  # 2nd graph won't clean the 1st
plot(..., axes = FALSE, xlab = "", ylab = "")  # plotting 2ng graph
axis(4)


--
WBR,
Timur.




More information about the R-help mailing list