Interpolate a logical matrix into a lower-resolution representation.
lminter(x, block.size = 1, nbin = 0)
a logical matrix.
the interpolation block size.
the number of density bins.
Partitions a binary matrix into square blocks of specified size
(length) and interpolates the number of
TRUE values per block
using the specified number of bins.
Note that the effective number of bins is one greater than the specified number because the zero bin is always included. Excess rows and columns at the lower or right margins of the matrix are ignored.
If the number of bins is null counts are mapped to zero and one thresholding at half of the number of distinct count values including zero. Thus, for even numbered block sizes there is a bias towards zero.
An integer matrix of bin numbers.
Package internal function.
lmplot for plotting logical matrices.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.