[R] Plotting nondetects a different color
    Peter Langfelder 
    peter.langfelder at gmail.com
       
    Tue May 31 23:41:45 CEST 2011
    
    
  
On Tue, May 31, 2011 at 2:19 PM, David Doyle <kydaviddoyle at 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
    
    
More information about the R-help
mailing list