I want to create heatmaps based upon cosine dissimilarity.
I'm using R and have explored several packages, but cannot find a function to generate a standard cosine dissimilarity matrix. The built-in
dist() function doesn't support cosine distances, also within the package
arules there is a
dissimilarity() function, but it only works on binary data.
Can anybody recommend a library? Or demonstrated how to calculate cosine dissimilarity within R?