Re: [R] How to plot multiple variables on the same graph

2007-10-26 Thread Rafael Barros de Rezende
: Moshe Olshansky <[EMAIL PROTECTED]> To:Rafael Barros de Rezende <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Sent: Thu, 25 Oct 2007 17:39:38 -0700 (PDT) Subject: Re: [R] How to plot multiple variables on the same graph > Is this what you need? > > >

Re: [R] How to plot multiple variables on the same graph

2007-10-25 Thread jim holtman
matplot(mat, cbind(a,b,c)) On 10/25/07, Rafael Barros de Rezende <[EMAIL PROTECTED]> wrote: > > How to plot multiple variables on the same graph > > Dear R users, > > I want to plot the following variables (a, b, c) on the same graph. The > x-axis must be the variable mat and the graph mus

Re: [R] How to plot multiple variables on the same graph

2007-10-25 Thread Moshe Olshansky
Is this what you need? > plot(mat,a,type="l",col="red",ylim=c(0,1)) > lines(mat,b,col="green") > lines(mat,c,col="blue") --- Rafael Barros de Rezende <[EMAIL PROTECTED]> wrote: > >How to plot multiple variables on the same graph > >Dear R users, > >I want to plot the following var

[R] How to plot multiple variables on the same graph

2007-10-25 Thread Rafael Barros de Rezende
How to plot multiple variables on the same graph Dear R users, I want to plot the following variables (a, b, c) on the same graph. The x-axis must be the variable mat and the graph must have the type = "l". How can I do that?? > a [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 > b