Re: [R] Scatter plot selection points

2014-05-30 Thread PIKAL Petr
3.5,"Code"] > plot(iris$Sepal.Length ~ iris$Sepal.Width, > col=ifelse(iris$Code %in% sel, "red", "black"), > pch=ifelse(iris$Code %in% sel, 17, 1)) > > Cheers > > > On 30/05/2014 17:38, PIKAL Petr wrote: > > Hi > > > > >

Re: [R] Scatter plot selection points

2014-05-30 Thread Beatriz
(iris$Code %in% sel, "red", "black"), pch=ifelse(iris$Code %in% sel, 17, 1)) Cheers On 30/05/2014 17:38, PIKAL Petr wrote: Hi -Original Message- From: Beatriz [mailto:aguitatie...@hotmail.com] Sent: Friday, May 30, 2014 10:08 AM To: PIKAL Petr; R Help Subject: Re:

Re: [R] Scatter plot selection points

2014-05-30 Thread PIKAL Petr
Hi > -Original Message- > From: Beatriz [mailto:aguitatie...@hotmail.com] > Sent: Friday, May 30, 2014 10:08 AM > To: PIKAL Petr; R Help > Subject: Re: [R] Scatter plot selection points > > Hi Ptr, > > Thanks for your email however, I cannot make the code w

Re: [R] Scatter plot selection points

2014-05-30 Thread Beatriz
ct.org] On Behalf Of Beatriz Sent: Friday, May 30, 2014 9:37 AM To: R Help Subject: [R] Scatter plot selection points Hi all, I'd like to do a scatterplot where some of the values, out of a subset, are plotted differently in color and shape. I've worked around the following code but I don

Re: [R] Scatter plot selection points

2014-05-30 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Beatriz > Sent: Friday, May 30, 2014 9:37 AM > To: R Help > Subject: [R] Scatter plot selection points > > Hi all, > > I'd like to do a s

[R] Scatter plot selection points

2014-05-30 Thread Beatriz
Hi all, I'd like to do a scatterplot where some of the values, out of a subset, are plotted differently in color and shape. I've worked around the following code but I don't manage to make it right. Any help greatly appreciated! # My data dd <- iris iris$Code <- 1:150 # A selection of my data