Dear All,
I have marker data with each marker having specific p-value, now I would like to plot a heat map using these p-values like the following link: http://www.fcg.ethz.ch/research/GenomicResources/a-transcriptome-map-of-perennial-ryegrass.html
Can anyone suggest an R package or any other way to construct chromosome wise heatmaps?
Thanks in advance
use simple R plot function called 'image' and use
par(mfrow=c(1,2))
In the below image, I used 'image' (middle bar). I guess you are looking for similar bars. You can also use 'breaks' as in 'heatmap' function.
Use looping function in R to plot for multiple bars for all chromosomes.
Hi
this really sounds promising but can you break down the code please? I'm really new to R, I'm trying to use image function but it gives me error, image function is for matrix data type but I have to plot as a single bar, could you explain how it was done??? cheers
The trick is try to use column names with
cbind
function.First try to plot for single chromosome (one bar). Check if it works, then go for multiple plots.