wr.disc: within-row sorting of discrete values

Description Usage Arguments Details

Description

Sorts discrete matrices within rows

Usage

1
wr.disc(X, colorSeq = sort(unique(X)), naLast = FALSE)

Arguments

X

a matrix: each row a subject, each column a time/location across subjects

colorSeq

a vector with the unique elements of X presented in the order of the desired resultant sorting

naLast

defaults to false; should NA values be sorted to first position or last. Defaults to FALSE.

Details

wc sorts within-columns, scrambling the subject-specific nature of the rows but revealing a group-level temporal patterns. As with wr there is a discrete and continuous implementation wc.disc and wc.cont


swihart/lasagnar documentation built on May 30, 2019, 9:39 p.m.