How to plot a image like this.
0
0
Entering edit mode
21 days ago

This is a mutation landscape plot. I just want to know the name of the plot of such type and how to plot it using R (which package)???

Any help is appreciated.

enter image description here

plot Bioinformatics Cancer R Genome • 288 views
ADD COMMENT
0
Entering edit mode

GenVisR is a possible option.

ADD REPLY
0
Entering edit mode

Thank you! But it seems that GenVisR doesn't include the function to repeat such a plot after reading its user guides. I wonder if you can tell me the name of such a plot.

ADD REPLY
0
Entering edit mode

I hope someone directs you to a package that does what you want. If not, I have good news. This diagram is easy to make without a specialized package. You'll need to instantiate an array of an appropriate size, loop over the rows and columns, assign each (ith, jth) entry to the desired colour values, and then save the raster in your preferred format (example: png). There's a lot of freedom in how you assign the colours, but choose something clear and aesthetically pleasing.

ADD REPLY
0
Entering edit mode

I just noticed the colourbar above. For that it would be preferable to use slicing notation to assign those regions compared to looping and control flow. For the rest of the rows and columns a shift in the indices to account for the added rows at the top would work.

ADD REPLY

Login before adding your answer.

Traffic: 1384 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6