Marcus Mattos Riether
2003-Jan-08 15:06 UTC
[R] Overplotting two series of observations in R
Hi all. Could anyone help me find how to overplot two series of observations in the same window? Thanks. Marcus M. Riether --------------------------------------------- marcus.riether at sesi.org.br SESI Departamento Nacional Tecnologia da Educa??o tel.: (61) 317 9914 "Not everything that can be counted counts and not everything that counts can be counted." Einstein
Marcus Mattos Riether wrote:> > Hi all. > > Could anyone help me find how to overplot two series of observations in the > same window? > > Thanks. > > Marcus M. RietherThis question was already frequently asked (and answered!) on R-Help. Please check the mail archives for a couple of more detailed answers! The required tools are described in the graphics part of "An Introduction to R". In an outburst of kindness, let's demonstrate the principle again. Consider you want to plot y1 against x1 and y2 against x2 in the same plot: plot(x1, y1, xlim = range(x1, x2), ylim = range(y1, y2)) points(x2, y2, col = "red") Uwe Ligges