This is a test version of Biostars. For the public version, visit https://www.biostars.org.
[Graph plotting] Correlation between gene expression & histone marks (Anyone know how to plot one/ the one like this figure?)

Hi does anyone know how to plot the figure below or a similar one?

Thanks!

https://www.nature.com/articles/ncomms15120/figures/3 enter image description here

rna-seq chip-seq

1 answer

Not a bioinformatics question but an R programming one. See this SO post.
The trick is to plot the red line over an image, i.e. use the heatmap as background image to the plot. This can be done with the R package ggplot2 and the rasterGrob() function.

Log in to answer this question.