The support.bioconductor.org editor has been updated to markdown! Please see more info at: Tutorial: Updated Support Site Editor

Question: how to save picture and add title to waterfall GenVisR mutation analyse?
0
gravatar for ZihaoXing
3 months ago by
ZihaoXing0
ZihaoXing0 wrote:

i have a problem and want to ask a question .how to save picture and add a title to waterfall mutation analyse by GenVisR  package?

genvisr waterfall mutation • 95 views
ADD COMMENTlink modified 10 weeks ago by zlskidmore10 • written 3 months ago by ZihaoXing0
Answer: how to save picture and add title to waterfall GenVisR mutation analyse?
0
gravatar for zlskidmore
10 weeks ago by
zlskidmore10
zlskidmore10 wrote:

are you using Waterfall() or waterfall(), theres currently two function while I transition to a more object oriented style.

 

If you're using Waterfall() this should work:

 

plot <- Waterfall()

pdf(file="tmp.pdf")

drawPlot(plot)

dev.off()

 

 

otherwise you should be able to do this:

 

pdf(file="tmp.pdf")

waterfall()

dev.off()

 

 

Both functions have the ability to add extra ggplot layers for lower case waterfall something like this should work:

 

library(ggplot2)

layer <- list(ggtitle("MY TITLE"))

waterfall(brcaMAF, mainRecurCutoff = .5, mutBurdenLayer = layer)

 

 

There is a similar parameter for the new uppercase Waterfall() function as well, you just need to make sure your ggplot layer is passed as a list.

ADD COMMENTlink modified 10 weeks ago • written 10 weeks ago by zlskidmore10
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 489 users visited in the last hour