Re: [R] How to plot multiple datasets

2013-01-03 Thread David L Carlson
David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Rui Barradas > Sent: Th

Re: [R] How to plot multiple datasets

2013-01-03 Thread Sarah Goslee
Hi Bruce, That really isn't enough for anyone to be able to answer your question. In the simplest possible reading, you need lines() or points(), but your mention of regression leads me to believe you might want something more complex. Why don't you take a look at http://stackoverflow.com/questio

Re: [R] How to plot multiple datasets

2013-01-03 Thread Rui Barradas
Hello, You shuld provide a data example, but see if the following is what you are looking for. x <- 1:10 y1 <- rnorm(10) y2 <- rnorm(10) y3 <- rnorm(10) # One way plot(x, y1, ylim = range(c(y1, y2, y3))) points(x, y2, col = "red") points(x, y3, col = "blue") # Another way plot(x, y1, ylim =