Re: [R] Advise in R- plotting graphs

From: S Ellison <>
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:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
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 Please read the posting guide before posting to the list.

list of date sections of archive