[R] using scatter plot for different values

David Winsemius dwinsemius at comcast.net
Fri Feb 25 16:47:09 CET 2011


On Feb 25, 2011, at 10:26 AM, amir wrote:

> 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)

? points

>
> Regards,
> Amir
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list