: 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?
>
> >
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
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
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
4 matches
Mail list logo