[R] question about graph

John Kane jrkrideau at yahoo.ca
Sat May 22 18:38:08 CEST 2010


This is not enough information to let us give a good example but perhaps ?lines or ?points might help?



Example

aa <- 1:5
bb <- 1:5
cc <- c(1.5,2.5,3.5,4.2,4.4)
plot(aa,bb)
lines(aa,cc,col='red')
points(aa,cc, col="blue")


--- On Sat, 5/22/10, khazaei at ceremade.dauphine.fr <khazaei at ceremade.dauphine.fr> wrote:

> From: khazaei at ceremade.dauphine.fr <khazaei at ceremade.dauphine.fr>
> Subject: [R] question about graph
> To: r-help at r-project.org
> Received: Saturday, May 22, 2010, 5:53 AM
> Hi,
> 
> 
> I have two different sets of data from two different
> populations. I want
> to plot these samples (for example: Line graph) by just one
> graph.
> could you please help me?
> 
> Thanks
> Khazaei
> 
> ______________________________________________
> R-help at r-project.org
> mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.
>



More information about the R-help mailing list