Message Boards Message Boards


[Reddit-DiBB0118] Heatmap of inter- and intra- species comparison

Posted 5 years ago
3 Replies
9 Total Likes

Click on the image to zoom. Then click your browser back button to return to reading the post.

enter image description here


This is a response to the [CALL] Reddit DataViz Battle JAN2018: Visualize the Growth Rates of Algae:


A think the idea behind a good visualization is that all hidden information is reflected clearly. Here are a few observations about this dataset.

  • The same Species could be compared at different Light Intensities. Hence keep heatmap cells for those close, do not separate, as sapce-separated colors (like in different plots) are very hard to sense and compare due various optical illusions.

  • Different Species have different response to light and temperature and can be compared to each other. A good way to compare them is to sort them somehow to see growth of responsiveness. Stacked up heat map cells will smoothly grow by the sort design and any noise fluctuations will be easily seen.

  • At higher temperatures data seems less noisy. So I will perform sorting at highest temperatures.

Let me know if you can suggest improvements. I welcome any comments about design quality. Or post your own solutions.

The dataset is located at a web page:

The nature of the data is clear from the website description. It is easy to get the raw data with the following WL command:

raw = Import["", "Data"] /."0..06" -> .06;

You need /."0..06" -> .06 because the data has a clerical error resulting in the import of a string instead of a number. One way of obtaining a simple rectangular array / table of data is:

data=Cases[raw, {_String,__?NumberQ},Infinity]/.

which can be viewed as


enter image description here

First I create a Dataset for more convenient data manipulations.

set = Dataset[data][[3 ;; -1]][SortBy[#[[9]] &]]

enter image description here

Note I sorted data by the last column as it seems that higher temperatures have less relative fluctuations more definite "shape". Now partition 2500 and 5000 LUX separately:


Next define some style variables:

title=Style["Specific growth rates of algae",30,Gray,Bold,FontFamily->"Arial"];

and build the visualization presented at the top of this post :

       FrameLabel->{{"Species","Light Intensity, LUX"},{"Temperature, C","Temperature, C"}},
       LegendLabel->"divisions per day",LabelStyle->14],Top]],
POSTED BY: Vitaliy Kaurov
3 Replies
Posted 5 years ago

I think you meant:data = Cases[raw... rather than data = Cases[data.... in your second code snippet.

POSTED BY: Kelly Lowder

Yes, corrected, thank you!

POSTED BY: Vitaliy Kaurov

enter image description here - Congratulations! This post is now a Staff Pick as distinguished by a badge on your profile! Thank you, keep it coming!

If you wish you now can submit your post to Reddit competition simply by entering your post link:

in a comment here:

POSTED BY: Moderation Team
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract