Search
Question: how to save picture and add title to waterfall GenVisR mutation analyse?
0
gravatar for ZihaoXing
5 weeks 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?

ADD COMMENTlink modified 11 days ago by zlskidmore10 • written 5 weeks ago by ZihaoXing0
0
gravatar for zlskidmore
11 days 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 11 days ago • written 11 days 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 2.2.0
Traffic: 374 users visited in the last hour