mysimbaa wrote:
> Hello Everybody,
> I'm trying to plot(x,y) using different colors.
> I have to cut (x,y) into sub intervals.
> And I want to plot this sub intervals using colors. But infortunally I don't
> know how to do this with R.
> Can any body help me please?
>
> My code is looking like :
Another question concerning the type.
plot(x,F,xlab="Zeit [s]",ylab="Variation [%]",col = rep(c("red", "blue",
"magenta"), c(t0, ts, n)),type=c("p", "l","o"))
Doesnt change the type with differents colors!
(I become only one type and my color is red)
How can I solve this?
--
View this message
Dimitris Rizopoulos med.kuleuven.be> writes:
>
> the 'col' argument of plot() may also be a vector, e.g.,
>
> x <- sort(rnorm(15))
> y <- rnorm(15)
> plot(x, y,
> col = rep(c("red", "blue", "magenta"), c(5, 6, 4)))
> Dimitris
>
>
> Dimitris Rizopoulos
>
> - Original Message
the 'col' argument of plot() may also be a vector, e.g.,
x <- sort(rnorm(15))
y <- rnorm(15)
plot(x, y,
col = rep(c("red", "blue", "magenta"), c(5, 6, 4)))
I hope it helps.
Best,
Dimitris
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic Universi
4 matches
Mail list logo