<p>If Python is an option, you could check <a href="http://biopython.org/DIST/docs/tutorial/Tutorial.html#sec336" rel="nofollow noreferrer">BioPython and GenomDiagram</a>. This should get the job done.</p>

CC BY-SA 4.0
2020-10-05T16:16:29.517Z
2020-10-05T16:16:29.517Z
Mr_Z
<p>I assume you are trying to make something like a &quot;gene arrow map&quot; and <code>[gggenes][1]</code> can help you (with some little tweaks) in case you are familiar with <code>ggplot2</code>.</p>

CC BY-SA 4.0
2020-10-05T16:16:48.637Z
2020-10-05T16:16:48.637Z
haci
<p>I would like to create a simple plot of a given human gene containing the main features, e.g. exons, introns, ORFs, transcripts etc. I understand that <code>gviz</code>  is a popular choice for this kind of thing, but most tutorials are massive overkill for what I want to do (I don't need fancy features such as importing BAM files and plotting coverage).</p>
<p>I was wondering whether someone can point me towards some sample code for creating a basic gene plot. It probably would be good to start by creating a dataframe containing all the features of my gene - is there a handy package that can do that?</p>

<gene><visualization><gviz>
Easy way to create gene plot in gviz?
# Easy way to create gene plot in gviz?

(Asked by: username_0 on 2020-10-05)

I would like to create a simple plot of a given human gene containing the main features, e.g. exons, introns, ORFs, transcripts etc. I understand that `gviz` is a popular choice for this kind of thing, but most tutorials are massive overkill for what I want to do (I don't need fancy features such as importing BAM files and plotting coverage).

I was wondering whether someone can point me towards some sample code for creating a basic gene plot. It probably would be good to start by creating a dataframe containing all the features of my gene - is there a handy package that can do that?

**Tags:** gene, visualization, gviz

---

## 2 answers

### Answer by username_1 on 2020-10-05. Score: 1

If Python is an option, you could check [BioPython and GenomDiagram](http://biopython.org/DIST/docs/tutorial/Tutorial.html#sec336). This should get the job done.


---

### Answer by username_2 on 2020-10-05. Score: 0

I assume you are trying to make something like a "gene arrow map" and `[gggenes][1]` can help you (with some little tweaks) in case you are familiar with `ggplot2`.


---

