<p>I was curious how they have done it as well, so here expanded @Liopis comment :</p>

<pre><code>wget http://bioconductor.org/packages/release/bioc/src/contrib/DRIMSeq_1.6.0.tar.gz
tar -zxf DRIMSeq_1.6.0.tar.gz 
# if you need to find it, or use grep
# find DRIMSeq -name "dm_plotProportions.R"
less DRIMSeq/R/dm_plotProportions.R
</code></pre>

CC BY-SA 3.0
2017-11-23T15:26:22.713Z
This is planned to change and be able to look at the code thorough a web interface
llrs
CC BY-SA 3.0
2017-11-23T13:40:00.857Z
2017-11-23T13:40:00.857Z
Kamil S Jaron
<p>I'm using DRIMSeq to do some analysis but I'd like to make my own figures from the results ideally using what they've done as a base.</p>

<p>I'm trying to find how they make their ggplot objects in the function <code>plotProportoins</code> but when I use <code>findMethods('plotProportoins')</code> it ends up with a method <code>dmPlotProportoins</code>.</p>

<p>It says in the manual that it's a <em>ggplot</em> object but I can't seem to find how they make it. Any ideas?</p>

CC BY-SA 3.0
2017-11-23T11:16:24.843Z
You can look at the source code of the package and see how they create the object.
llrs
CC BY-SA 3.0
2017-11-23T11:23:14.613Z
What's the best way to do it? findMethods gives me the source code of the function but how can I get the code of the whole package? (sorry if the answer should be obvious)
Sethzard
CC BY-SA 3.0
2017-11-23T11:34:02.037Z
In the tar ball you have the source code of the package.
llrs
CC BY-SA 3.0
2017-11-23T11:35:50.793Z
I didn't know that was a thing. Brilliant, thank you!
Sethzard
<rna-seq><r><rna-splicing><ggplot2>
How can I find out the code DRIMSeq uses to make dmplotProportions objects?
# How can I find out the code DRIMSeq uses to make dmplotProportions objects?

(Asked by: username_0 on 2017-11-23)

I'm using DRIMSeq to do some analysis but I'd like to make my own figures from the results ideally using what they've done as a base.

I'm trying to find how they make their ggplot objects in the function `plotProportoins` but when I use `findMethods('plotProportoins')` it ends up with a method `dmPlotProportoins`.

It says in the manual that it's a *ggplot* object but I can't seem to find how they make it. Any ideas?

**Tags:** rna-seq, r, rna-splicing, ggplot2
> **Comments:**
> **username_1**: You can look at the source code of the package and see how they create the object.  
> **username_0**: What's the best way to do it? findMethods gives me the source code of the function but how can I get the code of the whole package? (sorry if the answer should be obvious)  
> **username_1**: In the tar ball you have the source code of the package.  
> **username_0**: I didn't know that was a thing. Brilliant, thank you!  

---

## 1 answers

### Answer by username_2 on 2017-11-23. Score: 4 | Accepted answer

I was curious how they have done it as well, so here expanded @Liopis comment :
wget http://bioconductor.org/packages/release/bioc/src/contrib/DRIMSeq_1.6.0.tar.gz
tar -zxf DRIMSeq_1.6.0.tar.gz 
# if you need to find it, or use grep
# find DRIMSeq -name "dm_plotProportions.R"
less DRIMSeq/R/dm_plotProportions.R

> **Comments:**
> **username_1**: This is planned to change and be able to look at the code thorough a web interface  

---

