Re: [R] Advise in R- plotting graphs

From: S Ellison <S.Ellison_at_lgc.co.uk>
Date: Sat, 24 May 2008 16:16:27 -0700 (PDT)

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.

______________________________________________
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.
Received on Sat 24 May 2008 - 23:21:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 25 May 2008 - 01:30:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive