Questions tagged [heatmap]

A heat map is a graphical representation of data where the individual values contained in a matrix are represented as colors.

A heat map (or heatmap) is a graphical representation of data where the individual values contained in a matrix are represented as colors.

Heat maps can be used to display statistics (especially in statistical computing and graphics), user experience on websites.

An example of a heat map:

Source: seaborn.heatmap

Additional Resources

Related Tags

4357 questions
30
votes
3 answers

Significance level added to matrix correlation heatmap using ggplot2

I wonder how one can add another layer of important and needed complexity to a matrix correlation heatmap like for example the p value after the manner of the significance level stars in addition to the R2 value (-1 to 1)? It was NOT INTENDED in…
doctorate
  • 1,381
  • 1
  • 19
  • 43
29
votes
1 answer

Lines to separate groups in seaborn heatmap

I am plotting data as a Seaborn heatmap in Python. My data is intrinsically grouped into categories, and I'd like to have lines on the plot to indicate where the groups lie on the map. As a simple example, suppose I wanted to modify this plot from…
T. Carson
  • 463
  • 1
  • 4
  • 9
28
votes
1 answer

How to give sns.clustermap a precomputed distance matrix?

Usually when I do dendrograms and heatmaps, I use a distance matrix and do a bunch of SciPy stuff. I want to try out Seaborn but Seaborn wants my data in rectangular form (rows=samples, cols=attributes, not a distance matrix)? I essentially want…
O.rka
  • 29,847
  • 68
  • 194
  • 309
28
votes
6 answers

Creating heatmaps using element?

Are there any JavaScript libraries out there that allow you to create heatmaps using in-browser graphic rendering features such as or SVG? I know about HeatMapAPI.com, but their heat maps are generated on the server side. I think that in…
warpech
  • 6,293
  • 4
  • 35
  • 36
27
votes
2 answers

Joining a dendrogram and a heatmap

I have a heatmap (gene expression from a set of samples): set.seed(10) mat <- matrix(rnorm(24*10,mean=1,sd=2),nrow=24,ncol=10,dimnames=list(paste("g",1:24,sep=""),paste("sample",1:10,sep=""))) dend <- as.dendrogram(hclust(dist(mat))) row.ord <-…
dan
  • 6,048
  • 10
  • 57
  • 125
25
votes
2 answers

How to move labels from bottom to top without adding "ticks"

How can I position xlabel on top of the plot using something else than "tick_top" - that adds a tick to the x label, and I don't want it. xlabel on the bottom with no tick: code: import numpy as np; np.random.seed(0) import matplotlib.pyplot as…
Kalanit
  • 835
  • 1
  • 9
  • 15
25
votes
3 answers

How to create a heat map in python that ranges from green to red?

I'm trying to plot log ratios from the range -3 to 3 and want negative ratios to be green and positive to be red, with a log ratio of 0 (center) to be white in color. None of the pre-existing color schemes in matplotlib provide this option, and I…
A. Gup
  • 263
  • 1
  • 3
  • 6
25
votes
3 answers

how to use black-and-white fill patterns instead of color coding on Calendar Heatmap

I'm using Paul Bleicher's Calendar Heatmap to visualize some events over time and I'm interested to add black-and-white fill patterns instead of (or on top of) the color coding to increase the readability of the Calendar Heatmap when printed in…
Eric Fail
  • 8,191
  • 8
  • 72
  • 128
24
votes
3 answers

Superimpose heatmap on a base image OpenCV Python

Please look at this github page. I want to generate heat maps in this way using Python PIL,open cv or matplotlib library. Can somebody help me figure it out? I could create a heat map for my network at the same size as the input, but I am not able…
curio17
  • 660
  • 1
  • 6
  • 15
24
votes
6 answers

Good examples of MapServer / OpenLayers

I want to convince some clients to use MapServer and OpenLayers. Please can anyone suggest attractive websites to show off the possiblities! The clients will be impressed by: A density map (otherwise known as a heat map, colour-shaded grid…
MarkJ
  • 30,070
  • 5
  • 68
  • 111
23
votes
1 answer

Heatmap.js not rendering

I'm attempting to integrate heatmap.js with Google maps to do some visualization work. I referred to this: http://www.patrick-wied.at/static/heatmapjs/example-heatmap-googlemaps.html As such, my code in my local sample looks nearly…
Raevik
  • 1,945
  • 9
  • 32
  • 53
22
votes
3 answers

R Scatter Plot: symbol color represents number of overlapping points

Scatter plots can be hard to interpret when many points overlap, as such overlapping obscures the density of data in a particular region. One solution is to use semi-transparent colors for the plotted points, so that opaque region indicates that…
rbatt
  • 4,677
  • 4
  • 23
  • 41
21
votes
4 answers

Seaborn Heatmap Colorbar Label as Percentage

Given this heat map: import numpy as np; np.random.seed(0) import seaborn as sns; sns.set() uniform_data = np.random.rand(10, 12) ax = sns.heatmap(uniform_data) How would I go about making the color bar values display in percent format? Also, what…
Dance Party2
  • 7,214
  • 17
  • 59
  • 106
21
votes
5 answers

Heatmap based on average weights and not on the number of data points

I am making a heatmap with Google API v3. I'll give an example. Lets consider earthquake magnitudes. I assign weights to each point to specify their magnitude. However google considers the density of points when you zoom out. The more points are in…
user2000796
  • 311
  • 1
  • 2
  • 3
21
votes
4 answers

Combining multiple complex plots as panels in a single figure

Introduction by @backlin Multiple simple plots can combined as panels in a single figure by using layout or par(mfrow=...). However, more complex plots tend to setup their own panel layout internally disabling them from being used as panels. Is…
alittleboy
  • 10,616
  • 23
  • 67
  • 107