Re: [R] plotting points with two colors

2009-01-20 Thread Greg Snow
t; -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Georg Ehret > Sent: Tuesday, January 20, 2009 10:23 AM > To: r-help > Subject: [R] plotting points with two colors > > Dear Miss R, > I am trying to plot a

Re: [R] plotting points with two colors

2009-01-20 Thread David Winsemius
?plot.default plot(x <- rnorm(47), type = "p", main = "plot(x, type = \"p\")", col = c("dark red","blue")) If you plan to have a system for the coloring, you need to get the values sequence-aligned with the colors. This just colors every other point "blue". -- David Winsemius On Jan 20,

[R] plotting points with two colors

2009-01-20 Thread Georg Ehret
Dear Miss R, I am trying to plot a scatterplot in which the points (round) should have two colors: half red and half blue (if you want: two half solid circles put together. Can you please help me to realize this efficiently? Thank you, Best regards, Georg. *