Usage
drawPatches(data, patches, patchSize=0.05, alpha=0.5, patchNpix=20, highlight=numeric(0), labels=rep("1", length(highlight)))
Arguments
data
nx2 matrix of points positions in the 2D space.
patches
rgbpatch object, with n rows in each channel specifying n elements. The values of a row-element are mapped to pixel intensities. Patch width is deduced from patchNpix argument.
patchSize
patch size as a ratio of the whole window.
alpha
If highlight is empty, this is the alpha value for all patches. Else if a set is highlighted, highlighted elements have this alpha value, and other elements have alpha/20.
patchNpix
expected size of the image patches sides. Should match the specification of patches object.
highlight
numeric vector taking values in 1..n, indicating elements in data to highlight. Patches are associated to alpha=1 if highlighted, 0.04 if not. If no highlight is specified, all patches have alpha=1.
labels
text labels associated to highlighted elements. Defauts to "1" for all highlighted elements.