2
$\begingroup$

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?

$\endgroup$
  • $\begingroup$ You can look at the source code of the package and see how they create the object. $\endgroup$ – llrs Nov 23 '17 at 11:16
  • $\begingroup$ 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) $\endgroup$ – Sethzard Nov 23 '17 at 11:23
  • $\begingroup$ In the tar ball you have the source code of the package. $\endgroup$ – llrs Nov 23 '17 at 11:34
  • $\begingroup$ I didn't know that was a thing. Brilliant, thank you! $\endgroup$ – Sethzard Nov 23 '17 at 11:35
4
$\begingroup$

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
$\endgroup$
  • 1
    $\begingroup$ This is planned to change and be able to look at the code thorough a web interface $\endgroup$ – llrs Nov 23 '17 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.