Icon

kn_​example_​r_​heatmap_​cars

Create Heatmaps in KNIME and use R to add Dendrograms

It is possible to create heatmaps with dendrograms with the help to R. You would have to check the code if the distance and cluster settings fit your needs. You can also export the numbers behind the clustering of the 'teeth'.

The data is from the 'cars' dataset like in your example. I did not check if the heatmap makes sense. The interpretation would have to be done in addition to some column selection and it might be necessary not normalize some data in order for it to make sense in such a display.

https://gist.github.com/noamross/e5d3e859aa0c794be10b Create Heatmaps in KNIME and use R to add Dendrogramshttps://forum.knime.com/t/heatmap-with-dendrograms-on-both-axes/18777 library(gplots)library(stats)library(RColorBrewer) create heatmapcompute heatmapvalueschoose distance functions# Distance options: euclidean (default), maximum, canberra, binary, minkowski, manhattan# Cluster options: complete (default), single, average, mcquitty, median, centroid, wardCol0 as RowIDmove label columnto frontexport_matrixrow_matrixcol_matrixcreate dendrogram ROWcreate dendrogram COLheatmap.pngcars.csvCol0dendrogram_row.pngdendrogram_col.png HeatMap(JFreeChart) Heatmap R View (Workspace) Table to R RowID Column Resorter R to Table R to Table R to Table R View (Workspace) R View (Workspace) Image Writer (Port) CSV Reader Column Rename Image Writer (Port) Image Writer (Port) https://gist.github.com/noamross/e5d3e859aa0c794be10b Create Heatmaps in KNIME and use R to add Dendrogramshttps://forum.knime.com/t/heatmap-with-dendrograms-on-both-axes/18777 library(gplots)library(stats)library(RColorBrewer) create heatmapcompute heatmapvalueschoose distance functions# Distance options: euclidean (default), maximum, canberra, binary, minkowski, manhattan# Cluster options: complete (default), single, average, mcquitty, median, centroid, wardCol0 as RowIDmove label columnto frontexport_matrixrow_matrixcol_matrixcreate dendrogram ROWcreate dendrogram COLheatmap.pngcars.csvCol0dendrogram_row.pngdendrogram_col.pngHeatMap(JFreeChart) Heatmap R View (Workspace) Table to R RowID Column Resorter R to Table R to Table R to Table R View (Workspace) R View (Workspace) Image Writer (Port) CSV Reader Column Rename Image Writer (Port) Image Writer (Port)

Nodes

Extensions

Links