Skip to content
Prev 374378 / 398530 Next

How would I color points conditional on their value in a plot of a time series

The ts method for plot() is quirky.  You can use the default method:

 plot(as.vector(time(ttt)), as.vector(ttt), type = "p", col=ifelse(ttt<8,
"black", "red"))


Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Tue, May 1, 2018 at 1:17 PM, Christopher W Ryan <cryan at binghamton.edu>
wrote: