perturbToBinary: Given a perturbation object, extract a binary vector

View source: R/perturbation.R

perturbToBinaryR Documentation

Given a perturbation object, extract a binary vector

Description

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.

Usage

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


hallucigenia-sparsa/seqtime documentation built on Jan. 9, 2023, 11:53 p.m.