forceReverse | R Documentation |
This reverses a subset of the ordering, as determined by the user. By default, the entire ordering is reversed.
forceReverse(
orderObject,
reverseStart = 1,
reverseEnd = length(orderObject$order1)
)
orderObject |
An object of class |
reverseStart |
The first index to be included in the reversal. |
reverseEnd |
The last index to be included in the reversal. |
The new complete ordering, with the reversal applied.
data(singlemolecule_example)
orderObj <- initialOrder(singlemolecule_example, Method = "PCA")
# reorder first 50 cells/molecules (rows)
orderObj$order1 <- refineFunction(orderObj, 1, 50)
orderObj$order1 <- forceReverse(orderObj, 1, 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.