sample-to-sample heatmap clustering samples according to a given categorical distance Exploratory tool that helps to visualize/cluster blocks of observations across columns ordered according to given categorical distance. The final output is a clustered distance matrix. This plot is aimed to guide the `DiscreteClusGap` user to give an idea which type of categorical distance would accommodate better to the inputted data. `sample2sampleHeat` is based on the `pheatmap` function from the `pheatmap` R package. Thus, any parameter found in pheatmap can be specified to `sample2sampleHeat`.
distanceHeat(
x,
distName,
clustering_method = "complete",
border_color = NA,
...
)
clustered heatmap
matrix object or data.frame
Name of categorical distance to apply.
string; clustering method used by pheatmap
string; color cell borders. By default, border_color = NA, where no border colors are shown.
other valid arguments in pheatmap function Available distances: 'bhattacharyya', 'chisquare', 'cramerV', 'hamming' and 'hellinger'.