Hi:
Here's a simple example (divide through by 10 for your case):
x <- 1:10
y <- rnorm(10, x, s = 0.3)
clr <- ifelse(x <= 5, 'red', 'blue')
plot(x, y, col = clr)
HTH,
Dennis
On Fri, Jul 16, 2010 at 6:08 AM, azam jaafari <azamjaafari@yahoo.com>
wrote:
> Hi
>
> I want to draw a plot from observed and predicted data and also shows
> threshold and data before threshold are identified with different color
from
> data after threshold.
>
> Suppose:
> abserved data are 0 or 1
> predicted data= 0 to 1
> threshold=0.5
>
> Thanks alot
>
>
>
>
>
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help@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.
>
>
[[alternative HTML version deleted]]