DPT methods {destiny} | R Documentation |
Methods for the DPT class. branch_divide
subdivides branches for plotting (see the examples).
branch_divide(dpt, divide = integer(0L)) tips(dpt) ## S4 method for signature 'DPT' dataset(object) ## S4 replacement method for signature 'DPT' dataset(object) <- value
dpt, object |
DPT object |
divide |
Vector of branch numbers to use for division |
value |
Value of slot to set |
branch_divide
and dataset<-
return the changed object, dataset
the extracted data, and tips
the tip indices.
plot.DPT uses branch_divide
for its divide
argument.
data(guo_norm) dpt <- DPT(DiffusionMap(guo_norm)) dpt_9_branches <- branch_divide(dpt, 1:3) plot(dpt_9_branches, col_by = 'branch')