On Tue, May 31, 2011 at 2:19 PM, David Doyle <kydaviddo...@gmail.com> wrote:
> I often have data sets that have nondetects in them.  For example
> Result     Detected ( 0=No 1=Yes)
> 14               1
> 20               1
> 10                0
> 19                1
> 12                0
> 9                   1
> 15                1
>
> I would like to be able to plots with the NonDetects one color and Detects
> another.
>
> Any suggestions?
>

Simplest suggestion:

plot(Result, color = Detected + 1)

HTH,

Peter

______________________________________________
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.

Reply via email to