Plotting features on genetic maps with karyoploteR
One of the most rewarding and insightful things we can do is visualize data. Very often, we want to see where some features lie concerning others on a chromosome or genetic map. These are sometimes called chromosome plots or ideograms. In this recipe, we’ll learn how to create one of these using the karyoploteR
package. This package takes the familiar GRanges
objects as input and creates detailed plots from the configuration. We’ll take a quick look at some different plot styles and configuration options for ironing out the bumps in your plots when labels spill off the page or overlap each other.
Getting ready
For this recipe, you’ll need karyoploteR
installed. All of the data we’ll use will be generated within the recipe itself.
How to do it…
Plotting features on genetic maps with karyoploteR
can be done by performing the following steps:
- First, load the necessary libraries:
library...