[R] using scatter plot for different values

amir amir at ac.upc.edu
Fri Feb 25 16:26:59 CET 2011


Hi everyone,

I have two different results which is determined by (x,y)
> x1 <- c(1,5,8)
> y1 <- c(8,9,10)
> x2 <- c(1,7,9)
> y2 <- c(5,7,9)

Let call one=(x1,y1) and Two=(x2,y2)

how can I draw them in R in a scatter plot showing (x,y) with two
different legends (One, Two)

Regards,
Amir



More information about the R-help mailing list