[R] Advise in R- plotting graphs

S Ellison S.Ellison at lgc.co.uk
Sun May 25 01:16:27 CEST 2008




Jason Lee-14 wrote:
> 
>  I want to plot "V1" against "V2" with the condition that I
> want to mark(color) the point(row 5) on the graph. This is so i could see
> some triangle shape thing on the graph for row 5.
> 
> 

You could try something crude like
plot(V1,V2, col=ifelse( (1:length(V1)) == 5, "red","black") )
 or
plot(V1,V2, pch=ifelse( (1:length(V1)) == 5, 1,2) )


-- 
View this message in context: http://www.nabble.com/Advise-in-R--plotting-graphs-tp17424911p17452851.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list