I have a vector of ids in R which corresponds to the exons that another vector of probes belongs to. e.g
where the first two probes belong to the same exon
How can I plot this on a graph as thick rectangles? The example below was generated with python, but I'd like to do this in R
A more generic, portable solution would be preferable, since I could experiment with different plotting libraries myself. i.e. What sort of object would I need to create and plot?
This could perhaps be generalized and posted on Stackoverflow instead, but I suspect this is a problem others here have encountered already.