Non-perturbed time points are coded as FALSE, perturbed ones as TRUE. If returnCol is TRUE, return instead a color vector with the defaultColor for non-perturbed time points and the perturbColor for perturbed time points.

perturbToBinary(perturb, l = NA, returnCol = FALSE,
  defaultColor = rgb(0, 1, 0, 0.5), perturbColor = rgb(1, 0, 0, 0.5))

Arguments

perturb

perturbation object

l

length of the time series

returnCol

return colors instead of FALSE/TRUE values

defaultColor

the color used for non-perturbed time points

perturbColor

the color used for perturbed time points