I know Stack Overflow is not a code writing service, but I am really stuck with this one and I have no clue how I can draw a map like this:
Where the color code is based on the p-value; the smaller the p-value, the brighter the color. The size of the dot is determined by the percentage overlap.
I have data of 3 samples, like this:
Sample1 Sample2 Sample3
Description percentage p-value Percentage p-value Percentage p-value
Trendy 0.1585 0 0.1646 1.11E-016 0.2397 6.41E-014
nonTrendy 0.219 5.55E-016 0.2203 9.84E-012
Specific 0.1713 9.99E-016 0.162 2.74E-011 0.1838 1.73E-012
nonspecific 0.2119 3.02E-013 0.1356 0.0000613 0.2044 1.1E-011
Robotics 0.1632 7.85E-013 0.1263 0.00000361 0.2158 0
human 0.2533 7.25E-012 0.1733 0.0000218 0.2069 4.16E-008
For each sample I have a percentage overlap(yes this percentage has not been multiplied by 100 so it is on scale of 1) and a p-value.
Also, few samples might have missing values (both for percentage and p-value). This happens due to absence of significant overlaps, as in the case of sample2
of nonTrendy
.
Please help me getting a figure like the one in attachment.