Relative Content

Tag Archive for rheatmap

How do I make a heatmap of the world in R based on only natural geography?

I am looking to make a heatmap in R displaying the diversity of islands around the world, but I’m having difficulty finding the right way to do this. I have made heatmaps before of states in the US and countries in the world with the ggplot2 and maps packages, but this time I cannot find the right template to use. The boundaries in the heatmap really need to be based on natural geography, and not political geography. For example, islands like Hispaniola and Borneo need to be one entity (as opposed to 2 or 3 countries), and islands like Java and Sumatra need to be separate entities (as opposed to just a single country). If such a template does not exist, is there any way to do this manually?

create heatmap from specific list elements with non unique names

all, I do not know if this easy, but at the moment I can not really figure it out, hence this post.
How can I transform a list to be used for heatmap of the Log2FC values per Metabolite, still associating the values to Name per Folder?
Note that Folder field apart from all, will have 2 more of different names, the Name column has similar entries and so do the metabolites.
There must be something like melt but I can not figure this.
Here is an example of a part of the list.
Note that Metabolite, Name are not unique elements inside the data.frame or acrross the list
The list has 7 of those data frames.