Description Usage Arguments Value
Function that re-shuffles columns and rows of the integer matrix to find the best partitionioning into a minimal set of rectangles.
1 | get_rectangles_shuffle(m, target_value = 1, method = "single")
|
m |
Matrix of integer to partition. |
target_value |
Value to use as a marker. Defaults to "1". Any other value than that will be treated as the absense of marker. |
method |
Shuffling is done by means of hierarchical clustering. This parameter denotes the clustering algorithm to use. Defaults to |
Returns list of rectangles. Each rectangle is a list defined by x0
, x1
, y0
and y1
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.